summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorAndreas Herrmann <aherrman@de.ibm.com>2006-03-02 21:28:54 +0100
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-02 22:45:40 -0600
commit35dc2585fa32a2b300307ffa9f17122b13ccef97 (patch)
tree447534ca73584cba39bc033bbad2728e0195b44d /drivers/s390
parent98acfc7e8e2606fadae6d2bf99fa040be917ce8c (diff)
downloadop-kernel-dev-35dc2585fa32a2b300307ffa9f17122b13ccef97.zip
op-kernel-dev-35dc2585fa32a2b300307ffa9f17122b13ccef97.tar.gz
[SCSI] zfcp: correctly set this_id for hosts
It fixes a bug in zfcp which provokes a race in scsi_scan.c. Finally this can lead to an Oops like: kernel BUG at fs/sysfs/symlink.c:87! Correctly set this_id for the host. Otherwise we provoke a race between scsi_target_reap_work and concurrent scsi_add_device. Signed-off-by: Andreas Herrmann <aherrman@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/scsi/zfcp_scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/scsi/zfcp_scsi.c b/drivers/s390/scsi/zfcp_scsi.c
index 9f6b4d7..a2de3c9 100644
--- a/drivers/s390/scsi/zfcp_scsi.c
+++ b/drivers/s390/scsi/zfcp_scsi.c
@@ -68,7 +68,7 @@ struct zfcp_data zfcp_data = {
eh_host_reset_handler: zfcp_scsi_eh_host_reset_handler,
/* FIXME(openfcp): Tune */
can_queue: 4096,
- this_id: 0,
+ this_id: -1,
/*
* FIXME:
* one less? can zfcp_create_sbale cope with it?
OpenPOWER on IntegriCloud