mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
scsi: sd: sd_read_cpr() requires VPD pages
[ Upstream commit1700714b1f
] As such it should be called inside the scsi_device_supports_vpd() conditional. Link: https://lore.kernel.org/r/20220302053559.32147-13-martin.petersen@oracle.com Fixes:e815d36548
("scsi: sd: add concurrent positioning ranges support") Cc: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
226e993c39
commit
b34dd3a287
1 changed files with 1 additions and 1 deletions
|
@ -3320,6 +3320,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);
|
||||
|
@ -3329,7 +3330,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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue