* [PATCH] fix the fix for multiple HBA problem with transport classes
@ 2005-02-02 20:55 James.Smart
2005-02-02 20:56 ` James Bottomley
0 siblings, 1 reply; 2+ messages in thread
From: James.Smart @ 2005-02-02 20:55 UTC (permalink / raw)
To: linux-scsi; +Cc: James.Bottomley
Testing was showing transport devices not being enumerated.
The reason was the wrong attribute container was being compared
against in the "match" functions. This patch fixes it.
-- james s
diff -puN a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
--- a/drivers/scsi/scsi_transport_fc.c 2005-02-02 14:49:15.000000000 -0500
+++ b/drivers/scsi/scsi_transport_fc.c 2005-02-02 15:31:47.000000000 -0500
@@ -759,7 +759,7 @@ static int fc_target_match(struct attrib
i = to_fc_internal(shost->transportt);
- return &i->t.host_attrs == cont;
+ return &i->t.target_attrs == cont;
}
diff -puN a/drivers/scsi/scsi_transport_spi.c b/drivers/scsi/scsi_transport_spi.c
--- a/drivers/scsi/scsi_transport_spi.c 2005-02-02 14:58:01.000000000 -0500
+++ b/drivers/scsi/scsi_transport_spi.c 2005-02-02 15:32:52.000000000 -0500
@@ -148,7 +148,7 @@ static int spi_host_match(struct attribu
i = to_spi_internal(shost->transportt);
- return &i->t.target_attrs == cont;
+ return &i->t.host_attrs == cont;
}
static int spi_device_configure(struct device *dev)
diff -puN a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
--- a/drivers/scsi/scsi_transport_iscsi.c 2005-02-02 15:30:56.000000000 -0500
+++ b/drivers/scsi/scsi_transport_iscsi.c 2005-02-02 15:32:07.000000000 -0500
@@ -289,7 +289,7 @@ static int iscsi_target_match(struct att
i = to_iscsi_internal(shost->transportt);
- return &i->t.host_attrs == cont;
+ return &i->t.target_attrs == cont;
}
struct scsi_transport_template *
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-02-02 20:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-02 20:55 [PATCH] fix the fix for multiple HBA problem with transport classes James.Smart
2005-02-02 20:56 ` James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox