Commit 7448b91d authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Laibin Qiu
Browse files

block: don't ignore REQ_NOWAIT for direct IO

mainline inclusion
from mainline-v5.12-rc6
commit f8b78caf
category: bugfix
bugzilla: 186136, https://gitee.com/openeuler/kernel/issues/I4RM1D


CVE: NA

-------------------------------------------------

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: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
conflict:
        fs/block_dev.c
Signed-off-by: default avatarLaibin Qiu <qiulaibin@huawei.com>
Reviewed-by: default avatarZhang Yi <yi.zhang@huawei.com>
parent 9fefd491
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment