Re: [PATCH V2] blk-mq: streamline handling of q->mq_ops->queue_rq result

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

 



On 08/07/2020 16:06, John Garry wrote:
> On 08/07/2020 13:27, Ming Lei wrote:
>> k;
>> -		} else if (ret == BLK_STS_ZONE_RESOURCE) {
>> +		case BLK_STS_RESOURCE:
>> +		case BLK_STS_DEV_RESOURCE:
>> +			blk_mq_handle_dev_resource(rq, list);
>> +			goto out;
>> +		case BLK_STS_ZONE_RESOURCE:
>>   			/*
>>   			 * Move the request to zone_list and keep going through
>>   			 * the dispatch list to find more requests the drive can
> 
> question not on this patch specifically: is this supposed to be 
> "driver", and not "drive"? "driver" is mentioned earlier in the function

No it's drive, the sole purpose of BLK_STS_ZONE_RESOURCE is the apply some back 
pressure for IO submitters to a SMR disk and the zone-append emulation it uses.
See drivers/scsi/sd_zbc.c for details.




[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