Skip to content
Commit 893a1c97 authored by Jens Axboe's avatar Jens Axboe
Browse files

blk-mq: allow REQ_NOWAIT to return an error inline



By default, if a caller sets REQ_NOWAIT and we need to block, we'll
return -EAGAIN through the bio->bi_end_io() callback. For some use
cases, this makes it hard to use.

Allow a caller to ask for inline return of errors related to
blocking by also setting REQ_NOWAIT_INLINE.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c0e48f9d
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