]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:38:14 +0000 (11:38 +0200)
commit398aca5129cf9cf09f064989caab4ba43edc8dc8
tree8e282b48ea77f60baa26dccfd42b836db002edbd
parentd5ecd2faa5221fd7e3f316cdd19a0a8672b95f81
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