aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas/sas_discover.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@us.ibm.com>2007-01-11 17:15:43 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2007-01-13 17:21:53 -0500
commit6b0efb8516a5298e12033df61f9e0c376a306adb (patch)
tree3f63587167905e86de330fb28219dbfb309aad9a /drivers/scsi/libsas/sas_discover.c
parent980fa2f9d64b9be96107c89e165953ace311af54 (diff)
[SCSI] libsas: Add SAS_HA state flags to avoid queueing events while unloading
Track sas_ha_struct state so that we ignore events that come in while we're shutting things down. Signed-off-by: Malahal Naineni <malahal@us.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/libsas/sas_discover.c')
-rw-r--r--drivers/scsi/libsas/sas_discover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_discover.c b/drivers/scsi/libsas/sas_discover.c
index 21f538e4a0b5..b6ba0e053d1a 100644
--- a/drivers/scsi/libsas/sas_discover.c
+++ b/drivers/scsi/libsas/sas_discover.c
@@ -753,7 +753,7 @@ int sas_discover_event(struct asd_sas_port *port, enum discover_event ev)
753 BUG_ON(ev >= DISC_NUM_EVENTS); 753 BUG_ON(ev >= DISC_NUM_EVENTS);
754 754
755 sas_queue_event(ev, &disc->disc_event_lock, &disc->pending, 755 sas_queue_event(ev, &disc->disc_event_lock, &disc->pending,
756 &disc->disc_work[ev].work, port->ha->core.shost); 756 &disc->disc_work[ev].work, port->ha);
757 757
758 return 0; 758 return 0;
759} 759}