All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack
@ 2007-05-29 13:29 Swen Schillig
  2007-06-17 20:50 ` James Bottomley
  0 siblings, 1 reply; 6+ messages in thread
From: Swen Schillig @ 2007-05-29 13:29 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi, linux-s390, schmichr

From: Christof Schmitt <schmichr@de.ibm.com>

zfcp reported units to the SCSI stack starting
with number 0. LUN 0 reported to the SCSI stack is usually 
not the FCP LUN 0. When scanning for devices, 
the SCSI stack tried to issue a REPORT LUN command to LUN 0. 
The current design for zfcp does not want the SCSI stack to scan
for devices, since they are configured explicitly via sysfs.
This patch changes the numbering to always start with LUN 1 and therefore
prevent the SCSI stack sending REPORT LUN command.

Signed-off-by: Christof Schmitt <schmichr@de.ibm.com>
Signed-off-by: Swen Schillig <swen@vnet.ibm.com>

---

 drivers/s390/scsi/zfcp_aux.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux_jb_patched/drivers/s390/scsi/zfcp_aux.c
===================================================================
--- linux_jb_patched.orig/drivers/s390/scsi/zfcp_aux.c
+++ linux_jb_patched/drivers/s390/scsi/zfcp_aux.c
@@ -864,7 +864,8 @@ zfcp_unit_enqueue(struct zfcp_port *port
 
 	zfcp_unit_get(unit);
 
-	scsi_lun = 0;
+	/* Don't report LUN 0 to prevent the REPORT LUNS command from SCSI. */
+	scsi_lun = 1;
 	found = 0;
 	write_lock_irq(&zfcp_data.config_lock);
 	list_for_each_entry(tmp_unit, &port->unit_list_head, list) {

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-18 14:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-29 13:29 [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack Swen Schillig
2007-06-17 20:50 ` James Bottomley
2007-06-18  8:47   ` Hannes Reinecke
2007-06-18 13:04     ` Swen Schillig
2007-06-18 13:56     ` Heiko Carstens
2007-06-18 14:25       ` James Bottomley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.