diff options
author | Roman Penyaev <rpenyaev@suse.de> | 2019-12-17 16:54:07 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-17 17:01:43 +0100 |
commit | c58c1f83436b501d45d4050fd1296d71a9760bcb (patch) | |
tree | 4c969a564987faf83e96654aa5f720ad4c963a76 /block/bfq-cgroup.c | |
parent | nbd: fix shutdown and recv work deadlock v2 (diff) | |
download | linux-c58c1f83436b501d45d4050fd1296d71a9760bcb.tar.xz linux-c58c1f83436b501d45d4050fd1296d71a9760bcb.zip |
block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT
Non-mq devs do not honor REQ_NOWAIT so give a chance to the caller to repeat
request gracefully on -EAGAIN error.
The problem is well reproduced using io_uring:
mkfs.ext4 /dev/ram0
mount /dev/ram0 /mnt
# Preallocate a file
dd if=/dev/zero of=/mnt/file bs=1M count=1
# Start fio with io_uring and get -EIO
fio --rw=write --ioengine=io_uring --size=1M --direct=1 --name=job --filename=/mnt/file
Signed-off-by: Roman Penyaev <rpenyaev@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-cgroup.c')
0 files changed, 0 insertions, 0 deletions