Re: [PATCH 3/3] block/mq-deadline: Disable I/O prioritization in certain cases

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

 



On 12/14/23 09:08, Bart Van Assche wrote:
> On 12/12/23 10:13, Christoph Hellwig wrote:
>> If you want zoned devices to work you need something
>> like zone append [ ... ]
> 
> If F2FS would submit REQ_OP_ZONE_APPEND operations, the only realistic
> approach in the short term would be that sd_zbc.c translates these
> operations into WRITE commands. Would it be acceptable to optimize
> sd_zbc.c such that it does not restrict the queue depth to one per zone
> if the storage device (UFS) preserves the command order per hardware
> queue?

Yes, that can be trivially done with the sd_zbc.c zone append emulation. If you
check the code, you'll see that sd_zbc_prepare_zone_append() returns
BLK_STS_ZONE_RESOURCE if the target zone is already locked. That causes a
requeue and the zone append to be resubmitted later. All you need to do for UFS
devices is tweak that to not requeue the zone append if the write command used
to emulate it can be issued. The completion path will also, of course, need some
tweaks to not attempt to unlock the target zone if it was not locked.

> 
> Thanks,
> 
> Bart.
> 

-- 
Damien Le Moal
Western Digital Research





[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