Re: [PATCH 4/5] block: Remove REQ_OP_ZONE_RESET_ALL emulation

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

 



On 7/4/24 09:07, Ed Tsai (蔡宗軒) wrote:
>> diff --git a/block/blk-core.c b/block/blk-core.c
>> index 71b7622c523a..0c25df9758d0 100644
>> --- a/block/blk-core.c
>> +++ b/block/blk-core.c
>> @@ -834,7 +834,7 @@ void submit_bio_noacct(struct bio *bio)
>>  			goto not_supported;
>>  		break;
>>  	case REQ_OP_ZONE_RESET_ALL:
>> -		if (!bdev_is_zoned(bio->bi_bdev) ||
>> !blk_queue_zone_resetall(q))
>> +		if (!bdev_is_zoned(bio->bi_bdev))
>>  			goto not_supported;
>>  		break;
>>  	case REQ_OP_DRV_IN:
> 
> It does the same thing as other zone operations, putting these together
> will be more cleaner?

Indeed. Will do that in v2.

-- 
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