All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sd: Signal drive managed SMR disks
@ 2020-05-14  8:19 Damien Le Moal
  2020-05-14  8:24 ` Johannes Thumshirn
  2020-05-15  1:10 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Damien Le Moal @ 2020-05-14  8:19 UTC (permalink / raw)
  To: linux-scsi, Martin K . Petersen

Print a message indicating that a disk is a drive-managed SMR model when
such drive is found using the ZONED filed of the Block Device
Characteristics VPD page (IDENTIFY data on ATA side).

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
---
 drivers/scsi/sd.c | 3 +++
 1 file changed, 3 insertions(+)

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] sd: Signal drive managed SMR disks
  2020-05-14  8:19 [PATCH] sd: Signal drive managed SMR disks Damien Le Moal
@ 2020-05-14  8:24 ` Johannes Thumshirn
  2020-05-15  1:10 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Johannes Thumshirn @ 2020-05-14  8:24 UTC (permalink / raw)
  To: Damien Le Moal, linux-scsi, Martin K . Petersen

Loos good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sd: Signal drive managed SMR disks
  2020-05-14  8:19 [PATCH] sd: Signal drive managed SMR disks Damien Le Moal
  2020-05-14  8:24 ` Johannes Thumshirn
@ 2020-05-15  1:10 ` Martin K. Petersen
  1 sibling, 0 replies; 3+ messages in thread
From: Martin K. Petersen @ 2020-05-15  1:10 UTC (permalink / raw)
  To: Damien Le Moal, linux-scsi; +Cc: Martin K . Petersen

On Thu, 14 May 2020 17:19:53 +0900, Damien Le Moal wrote:

> Print a message indicating that a disk is a drive-managed SMR model when
> such drive is found using the ZONED filed of the Block Device
> Characteristics VPD page (IDENTIFY data on ATA side).

Applied to 5.8/scsi-queue, thanks!

[1/1] scsi: sd: Signal drive managed SMR disks
      https://git.kernel.org/mkp/scsi/c/0bd735df7681

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-15  1:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14  8:19 [PATCH] sd: Signal drive managed SMR disks Damien Le Moal
2020-05-14  8:24 ` Johannes Thumshirn
2020-05-15  1:10 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.