Re: [PATCH] Percpu tag allocator

From: Tejun Heo
Date: Thu Jun 13 2013 - 18:30:42 EST

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.

Again, I'm not saying integrating this into idr is a bad idea. If
that's reasonably doable, awesomer, but I think even just
consolidating the existing bad ones into a common one is beneficial


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at