mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
scsi: core: Cache VPD pages b0, b1, b2
The SCSI disk driver consults VPD pages b0 (Block Limits), b1 (Block Device Characteristics), and b2 (Logical Block Provisioning). Instead of having sd.c request these pages every revalidate cycle, cache them along with the other commonly used VPDs. Link: https://lore.kernel.org/r/20220302053559.32147-6-martin.petersen@oracle.com Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
@@ -149,6 +149,10 @@ struct scsi_device {
|
||||
struct scsi_vpd __rcu *vpd_pg83;
|
||||
struct scsi_vpd __rcu *vpd_pg80;
|
||||
struct scsi_vpd __rcu *vpd_pg89;
|
||||
struct scsi_vpd __rcu *vpd_pgb0;
|
||||
struct scsi_vpd __rcu *vpd_pgb1;
|
||||
struct scsi_vpd __rcu *vpd_pgb2;
|
||||
|
||||
struct scsi_target *sdev_target;
|
||||
|
||||
blist_flags_t sdev_bflags; /* black/white flags as also found in
|
||||
|
||||
Reference in New Issue
Block a user