Re: [PATCH v6 04/11] block: Introduce REQ_OP_ZONE_APPEND

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

 



On 17/04/2020 09:42, Daniel Wagner wrote:
> Stupid question. At the end of this function I see:
> 
> 	/*
> 	 * If the host/device is unable to accept more work, inform the
> 	 * caller of that.
> 	 */
> 	if (ret == BLK_STS_RESOURCE || ret == BLK_STS_DEV_RESOURCE)
> 		return false;
> 
> Why is BLK_STS_ZONE_RESOURCE missing?

Because technically the device can still accept more work, it is just 
the zone-write lock for one (or more) zone(s) is locked. So we can still 
try to dispatch work to the device, like reads or writes to other zones 
in order to not starve any readers or writers to different zones.




[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