diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2020-05-14 17:19:53 +0900 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-05-14 20:48:53 -0400 |
commit | 0bd735df7681e41647a69b1fad0eb5594c60a727 (patch) | |
tree | 045f07bbe51f635467393f06ebad1a6f514cb98a /drivers/scsi/sd.c | |
parent | 21d2b76831fdee3754eeee995e15080098603ec5 (diff) | |
download | linux-0bd735df7681e41647a69b1fad0eb5594c60a727.tar.gz linux-0bd735df7681e41647a69b1fad0eb5594c60a727.tar.bz2 linux-0bd735df7681e41647a69b1fad0eb5594c60a727.zip |
scsi: sd: Signal drive managed SMR disks
Print a message indicating that a disk is a drive-managed SMR model when
such drive is found using the ZONED field of the Block Device
Characteristics VPD page (IDENTIFY data on ATA side).
[mkp: typo]
Link: https://lore.kernel.org/r/20200514081953.1252087-1-damien.lemoal@wdc.com
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index a793cb08d025..8929e178c6f8 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -2955,6 +2955,9 @@ static void sd_read_block_characteristics(struct scsi_disk *sdkp) * with partitions as regular block devices. */ q->limits.zoned = BLK_ZONED_NONE; + if (sdkp->zoned == 2 && sdkp->first_scan) + sd_printk(KERN_NOTICE, sdkp, + "Drive-managed SMR disk\n"); } } if (blk_queue_is_zoned(q) && sdkp->first_scan) |