All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 0/1] zfcp fix for 2.6.36-rc3
@ 2010-08-30  8:55 Christof Schmitt
  2010-08-30  8:55 ` [patch 1/1] zfcp: Reorder registration of initial SCSI device Christof Schmitt
  0 siblings, 1 reply; 2+ messages in thread
From: Christof Schmitt @ 2010-08-30  8:55 UTC (permalink / raw)
  To: James Bottomley; +Cc: linux-scsi, linux-s390, schwidefsky, heiko.carstens

James,

here is one fix for the zfcp driver. The patch applies on top of the
2.6.36-rc3 kernel tree.

--
Christof

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

* [patch 1/1] zfcp: Reorder registration of initial SCSI device
  2010-08-30  8:55 [patch 0/1] zfcp fix for 2.6.36-rc3 Christof Schmitt
@ 2010-08-30  8:55 ` Christof Schmitt
  0 siblings, 0 replies; 2+ messages in thread
From: Christof Schmitt @ 2010-08-30  8:55 UTC (permalink / raw)
  To: James Bottomley
  Cc: linux-scsi, linux-s390, schwidefsky, heiko.carstens,
	Christof Schmitt

[-- Attachment #1: 700-zfcp-reorder-registration.diff --]
[-- Type: text/plain, Size: 1076 bytes --]

From: Christof Schmitt <christof.schmitt@de.ibm.com>

Make sure that the rport registration did complete and then register
SCSI device directly. Otherwise the unit_enqueue would race with the
call to zfcp_scsi_queue_unit_register.

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

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

diff -urpN linux-2.6/drivers/s390/scsi/zfcp_aux.c linux-2.6-patched/drivers/s390/scsi/zfcp_aux.c
--- linux-2.6/drivers/s390/scsi/zfcp_aux.c	2010-08-25 09:25:54.000000000 +0200
+++ linux-2.6-patched/drivers/s390/scsi/zfcp_aux.c	2010-08-25 09:26:07.000000000 +0200
@@ -73,13 +73,14 @@ static void __init zfcp_init_device_conf
 	if (!port)
 		goto out_port;
 
+	flush_work(&port->rport_work);
 	unit = zfcp_unit_enqueue(port, lun);
 	if (IS_ERR(unit))
 		goto out_unit;
 
 	zfcp_erp_unit_reopen(unit, 0, "auidc_1", NULL);
 	zfcp_erp_wait(adapter);
-	flush_work(&unit->scsi_work);
+	zfcp_scsi_scan(unit);
 
 out_unit:
 	put_device(&port->dev);

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

end of thread, other threads:[~2010-08-30  8:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-30  8:55 [patch 0/1] zfcp fix for 2.6.36-rc3 Christof Schmitt
2010-08-30  8:55 ` [patch 1/1] zfcp: Reorder registration of initial SCSI device Christof Schmitt

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.