Re: [patch 6/9] blk: unplug later

Nick Piggin
2005-04-13T01:37:38Z

Andrew Morton wrote:
> Nick Piggin <nickpiggin@yahoo.com.au> wrote:
>
>>get_request_wait needn't unplug the device immediately.
>
>
> Probably. But what if the get_request(q, rw, GFP_NOIO); did
> some sleeping?
>

It can't sleep unless it returns the request, because it
is using mempool allocs. So any time it returns NULL, it
hasn't slept.

But Jens would have a better idea of the correct behaviour.
Jens, what do you think?