Re: [PATCH 1/1] block: end bio with BLK_STS_AGAIN in case of non-mq devs and REQ_NOWAIT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/17/19 8:54 AM, Roman Penyaev wrote:
> 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

Thanks, this makes a lot of sense, doing -EIO for that case is wrong. Applied
for 5.5.

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux