summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_def.h
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2009-06-03 18:55:28 +0200
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-06-08 21:46:57 +0200
commitf999f4c1961fe5399fd66c95860cc2d5d67e591e (patch)
treeaa1b4389021f1676f04aa3a79e8b7f00ecfbb2c7 /drivers/scsi/qla2xxx/qla_def.h
parent[SCSI] qla2xxx: Avoid explicit LOGO during driver host tear-down. (diff)
downloadlinux-f999f4c1961fe5399fd66c95860cc2d5d67e591e.tar.xz
linux-f999f4c1961fe5399fd66c95860cc2d5d67e591e.zip
[SCSI] qla2xxx: Reduce lock-contention during do-work processing.
Queued work processing will now be serialized with its own lower-priority spinlock. This also simplifies the work-queue interface for future work-queue consumers. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_def.h')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 88ddae0e2b88..00aa48d975a6 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -2561,6 +2561,8 @@ typedef struct scsi_qla_host {
struct list_head list;
struct list_head vp_fcports; /* list of fcports */
struct list_head work_list;
+ spinlock_t work_lock;
+
/* Commonly used flags and state information. */
struct Scsi_Host *host;
unsigned long host_no;