scsi: scsi_dh_alua: Prevent duplicate pg info print in alua_rtpg()
authorJohn Pittman <jpittman@redhat.com>
Wed, 31 Mar 2021 18:16:56 +0000 (14:16 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 Apr 2021 03:20:38 +0000 (23:20 -0400)
commit22ec513e705735e32d4b8263c23d20c779639c7e
treec15c621becb09f92e52ab19b2da9ff0717139614
parentd56030f882a71e41732b544f98e1735b66a25d35
scsi: scsi_dh_alua: Prevent duplicate pg info print in alua_rtpg()

Due to the frequency that alua_rtpg() is called, the path group info print
within can print the same info multiple times in the logs, subsequent
prints adding no new information or value.

To reproduce:

    # modprobe scsi_debug vpd_use_hostno=0
    # systemctl start multipathd.service

To fix, check stored values, only printing at alua attach/activate and if
any of the values change.

Link: https://lore.kernel.org/r/20210331181656.5046-1-jpittman@redhat.com
Reviewed-by: David Jeffery <djeffery@redhat.com>
Reviewed-by: Laurence Oberman <loberman@redhat.com>
Signed-off-by: John Pittman <jpittman@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/device_handler/scsi_dh_alua.c