On Thu, 13 Jun 2013 15:30:28 -0700 Tejun Heo <t...@kernel.org> wrote:
> Hello, Andrew. > > On Thu, Jun 13, 2013 at 03:10:40PM -0700, Andrew Morton wrote: > > Look, we're falling into the age-old trap of trying to justify existing > > code just because it exists. > > > > Stop. Take a step back and pretend that the percpu tag allocator patch > > never existed. Now, define the problem and propose solutions. > > > > The absolute dead last and worst solution is "implement something new > > which largely duplicates existing code". Such a step requires an > > extraordinary amount of justification and that hasn't happened. > > I think you're looking at it from the complete opposite point from > mine. That problem has always existed and the solutions implemented > many times over in the whole IO stack across aio, block layer proper, > SCSI and individual drivers, and most, if not all, suck. If we can > consolidate those into a properly designed tag allocator, it's a win, > whether it's integrated into idr or not. It's a well-known problem > with incomplete bad solutions implemented in multiple places. Well that's news. My awe at the dreadfulness of Kent's changelog continues to grow. Please identify these duplicated allocators (function names will suffice). That way, others can actually review this code :( -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/