Re: [PATCH 12/14] scsi: sd: sd_read_cpr() requires VPD pages

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

 



On 2022/03/02 7:35, Martin K. Petersen wrote:
> As such it should be called inside the scsi_device_supports_vpd()
> conditional.
> 
> Cc: Damien Le Moal <damien.lemoal@xxxxxxx>
> Fixes: e815d36548f0 ("scsi: sd: add concurrent positioning ranges support")
> Signed-off-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx>

I thought this was already queued :)

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

> ---
>  drivers/scsi/sd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
> index 2c2e86738578..9d6b2205339d 100644
> --- a/drivers/scsi/sd.c
> +++ b/drivers/scsi/sd.c
> @@ -3396,6 +3396,7 @@ static int sd_revalidate_disk(struct gendisk *disk)
>  			sd_read_block_limits(sdkp);
>  			sd_read_block_characteristics(sdkp);
>  			sd_zbc_read_zones(sdkp, buffer);
> +			sd_read_cpr(sdkp);
>  		}
>  
>  		sd_print_capacity(sdkp, old_capacity);
> @@ -3405,7 +3406,6 @@ static int sd_revalidate_disk(struct gendisk *disk)
>  		sd_read_app_tag_own(sdkp, buffer);
>  		sd_read_write_same(sdkp, buffer);
>  		sd_read_security(sdkp, buffer);
> -		sd_read_cpr(sdkp);
>  		sd_config_write_same(sdkp);
>  		sd_config_discard(sdkp, SD_LBP_DEFAULT);
>  		sd_config_write_zeroes(sdkp, SD_ZERO_DEFAULT);


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