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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 09:43:21 +0000 (11:43 +0200)
commit5402a67ac4033e2dceec118286ca1c453f682669
treebe7f6950c3f406ab67dbfa9f1e360d860d1684ce
parentefa7b6e4017aeccc0d7595e110f2d69a26332b2c
block: don't ignore REQ_NOWAIT for direct IO

[ Upstream commit f8b78caf21d5bc3fcfc40c18898f9d52ed1451a5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/block_dev.c