summaryrefslogtreecommitdiffstats
path: root/block/bsg-lib.c
diff options
context:
space:
mode:
authorRoman Penyaev <rpenyaev@suse.de>2019-12-17 16:54:07 +0100
committerJens Axboe <axboe@kernel.dk>2019-12-17 09:01:43 -0700
commitc58c1f83436b501d45d4050fd1296d71a9760bcb (patch)
tree4c969a564987faf83e96654aa5f720ad4c963a76 /block/bsg-lib.c
parent1c05839aa973cfae8c3db964a21f9c0eef8fcc21 (diff)
downloadtalos-op-linux-c58c1f83436b501d45d4050fd1296d71a9760bcb.tar.gz
talos-op-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/bsg-lib.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud