commit | 893a1c97205a3ece0cbb3f571a3b972080f3b4c7 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Jul 16 13:55:23 2019 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Jul 21 21:46:23 2019 -0600 |
tree | 9173a99e83a6842a89b07fb7eeb26e816a0c8faa | |
parent | c0e48f9dea9129aa11bec3ed13803bcc26e96e49 [diff] |
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: Jens Axboe <axboe@kernel.dk>