diff options
author | Roman Penyaev <rpenyaev@suse.de> | 2019-12-17 16:54:07 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-17 09:01:43 -0700 |
commit | c58c1f83436b501d45d4050fd1296d71a9760bcb (patch) | |
tree | 4c969a564987faf83e96654aa5f720ad4c963a76 /block/blk-cgroup-rwstat.c | |
parent | 1c05839aa973cfae8c3db964a21f9c0eef8fcc21 (diff) | |
download | linux-c58c1f83436b501d45d4050fd1296d71a9760bcb.tar.gz |
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/blk-cgroup-rwstat.c')
0 files changed, 0 insertions, 0 deletions