block: don't ignore REQ_NOWAIT for direct IO
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 20 Nov 2020 17:10:28 +0000 (17:10 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 2 Apr 2021 14:34:30 +0000 (08:34 -0600)
commitf8b78caf21d5bc3fcfc40c18898f9d52ed1451a5
treea0647e87fb73c8e7599cff05766f93f38d603de9
parentde3510e52b0a398261271455562458003b8eea62
block: don't ignore REQ_NOWAIT for direct IO

If IOCB_NOWAIT is set on submission, then that needs to get propagated to
REQ_NOWAIT on the block side. Otherwise we completely lose this
information, and any issuer of IOCB_NOWAIT IO will potentially end up
blocking on eg request allocation on the storage side.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c