Re: [PATCH 2/2] block: fops: Do not set REQ_SYNC for async IOs

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

 



On Sat, Nov 26, 2022 at 11:55:50AM +0900, Damien Le Moal wrote:
> Taking a blktrace of a simple fio run on a block device file using
> libaio and iodepth > 1 reveals that asynchronous writes are executed as
> sync writes, that is, REQ_SYNC is set for the write BIOs.
> 
> Fix this by modifying dio_bio_write_op() to set REQ_SYNC only for IOs
> that are indeed synchronous ones and set REQ_IDLE only for asynchronous
> IOs.

Well, REQ_SYNC is used for I/O that some is actively waiting for,
which includs aio/io_uring I/O unlike buffered writback.

So I don't think this should be changed.



[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