Skip to content
Commit 6a43074e authored by Jens Axboe's avatar Jens Axboe
Browse files

block: properly handle IOCB_NOWAIT for async O_DIRECT IO



A caller is supposed to pass in REQ_NOWAIT if we can't block for any
given operation, but O_DIRECT for block devices just ignore this. Hence
we'll block for various resource shortages on the block layer side,
like having to wait for requests.

Use the new REQ_NOWAIT_INLINE to ask for this error to be returned
inline, so we can handle it appropriately and return -EAGAIN to the
caller.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 893a1c97
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment