IB/srp: Print "ib_srp: " prefix once
pr_debug() already prints prefix PFX. Avoid that PFX is printed
twice if the debug statement in srp_add_target() is enabled.
Fixes: 34aa654ecb
("IB/srp: Avoid that I/O hangs due to a cable pull during LUN scanning")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Tested-by: Laurence Oberman <loberman@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
Родитель
38a2d0d429
Коммит
cf1acab7d7
|
@ -2840,7 +2840,7 @@ static int srp_add_target(struct srp_host *host, struct srp_target_port *target)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_debug(PFX "%s: SCSI scan succeeded - detected %d LUNs\n",
|
pr_debug("%s: SCSI scan succeeded - detected %d LUNs\n",
|
||||||
dev_name(&target->scsi_host->shost_gendev),
|
dev_name(&target->scsi_host->shost_gendev),
|
||||||
srp_sdev_count(target->scsi_host));
|
srp_sdev_count(target->scsi_host));
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче