As far as I can see, queue lock _is_ held in all the right spot. At
least where it matters, adding new samples.
> > Frankly, these things don't need to be %100 accurate. Using
> > a new spinlock or an atomic_t for this seems rediculious.
>
> The disk_stats structure has an "in flight" member. If we don't have proper
> locking around that, disks will appear to have -3 requests in flight for all
> time, which would look a tad odd.
So check for < 0 in flight? I totally agree with davem here.
-- Jens Axboe- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/