Introduce disable_target_scan flag in FC transport
A message that is not in the archive (sent off-list or not yet received): [email protected]
ACK
In the future, if the patch has already been pushed upstream independently I would not embed it again in a set of zfcp patches- I would simply reference it.
-- james s
Quoted 48 lines · Swen Schillig
From: Christof Schmitt <[email protected]>
This change has already been discussed on linux-scsi:
http://marc.info/?t=118771096400003
http://marc.info/?t=118760913100005Signed-off-by Christof Schmitt <[email protected]>Signed-off-by Swen Schillig <[email protected]>---
drivers/scsi/scsi_transport_fc.c | 4 +++- include/scsi/scsi_transport_fc.h | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-)diff -urpN
linux-2.6/drivers/scsi/scsi_transport_fc.clinux-2.6-patched/drivers/scsi/scsi_transport_fc.cdrivers/scsi/scsi_transport_fc.c +3
-1@@ -2988,10 +2988,12 @@ fc_scsi_scan_rport(struct work_struct *wstruct fc_rport *rport = container_of(work, struct fc_rport, scan_work);struct Scsi_Host *shost =rport_to_shost (rport); +struct fc_internal *i =to_fc_internal (shost->transportt);unsigned long flags;if ((rport->port_state ==FC_PORTSTATE_ONLINE ) && - (rport->roles &FC_PORT_ROLE_FCP_TARGET )) { + (rport->roles &FC_PORT_ROLE_FCP_TARGET ) && + !(i->f->disable_target_scan)) {scsi_scan_target (&rport->dev, rport->channel, rport->scsi_target_id,SCAN_WILD_CARD ,1 ); }diff -urpN
linux-2.6/include/scsi/scsi_transport_fc.hlinux-2.6-patched/include/scsi/scsi_transport_fc.hinclude/scsi/scsi_transport_fc.h +2
-1@@ -632,6 +632,8 @@ struct fc_function_template { unsigned long show_host_fabric_name:1; unsigned long show_host_symbolic_name:1; unsigned long show_host_system_hostname:1; + + unsigned long disable_target_scan:1; }; -To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html