Re: [patch] use cheaper elv_queue_empty when unplug a device

Nick Piggin
2005-04-08T09:55:11Z

Jens Axboe wrote:
> On Wed, Mar 30 2005, Nick Piggin wrote:

>>So Kenneth if you could look into this one as well, to see if
>>it is worthwhile, that would be great.
>
>
> For that to work, you have to change the get_io_context() allocation to
> be GFP_ATOMIC.
>

Yes of course, thanks for picking that up.

I guess this isn't a problem, as io contexts should be allocated
comparatively rarely. It would be possible to move it out of the
lock though if we really want to.

Thanks.

--
SUSE Labs, Novell Inc.