]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf980e51de4fa4df6c0d39babf3651c3e563aa59b
treec15c621becb09f92e52ab19b2da9ff0717139614
parent34d3303ae148ac9349c5ab68b21478a2381d5dc4
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