Re: [PATCH] scsi: sd_zbc: don't check max zone append sectors for max hw sectors

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

 



On 2020/07/16 18:16, Johannes Thumshirn wrote:
> Don't check for the maximum zone append sectors to be not bigger than the
> maximum hardware sectors in sd, as the block layer is already enforcing
> this limit when setting the max zone append sectors.
> 
> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>
> ---
>  drivers/scsi/sd_zbc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/scsi/sd_zbc.c b/drivers/scsi/sd_zbc.c
> index 6f7eba66687e..4c90911545b6 100644
> --- a/drivers/scsi/sd_zbc.c
> +++ b/drivers/scsi/sd_zbc.c
> @@ -736,7 +736,6 @@ int sd_zbc_read_zones(struct scsi_disk *sdkp, unsigned char *buf)
>  
>  	max_append = min_t(u32, logical_to_sectors(sdkp->device, zone_blocks),
>  			   q->limits.max_segments << (PAGE_SHIFT - 9));
> -	max_append = min_t(u32, max_append, queue_max_hw_sectors(q));
>  
>  	blk_queue_max_zone_append_sectors(q, max_append);
>  
> 

Looks good.

Reviewed-by: Damien Le Moal <damien.lemoal@xxxxxxx>

-- 
Damien Le Moal
Western Digital Research




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux