On Thu, Sep 30 2004, Shailabh Nagar wrote:
Jens Axboe wrote:
Hi,
Missed this patch the first time over (thank you lwn :-) - why are you
using atomic counters? In all the paths you set them, you already have
the queue lock.
Thats right, there's no need for them. I used these instinctively....
Will fix in next version, unless (hint, hint) you're taking a look at adding priorities back to mainline's CFQ.
It will never be for the mainline cfq, that is a dead code base. -mm has
a first stab at a cfq v2 with persistent io contexts, the priority based
code will go on top of that.