scsi: sd: Only print updates to permanent stream count
authorJohn Garry <john.g.garry@oracle.com>
Fri, 12 Apr 2024 09:44:07 +0000 (09:44 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 25 Apr 2024 01:03:01 +0000 (21:03 -0400)
commit961990efc608d559249f5637254fa0a9aa888b1c
treea302f22e406cc9c18925a1d69201b9b02be97eca
parentca91259b775f6fd98ae5d23bb4eec101d468ba8d
scsi: sd: Only print updates to permanent stream count

Just rescanning a partition causes a print similar to the following to
appear:

[    1.484964] sd 0:0:0:0: [sda] permanent stream count = 5

This is bothersome, so only print this message for an update.

Fixes: 4f53138fffc2 ("scsi: sd: Translate data lifetime information")
Signed-off-by: John Garry <john.g.garry@oracle.com>
Link: https://lore.kernel.org/r/20240412094407.496251-1-john.g.garry@oracle.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c