diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2009-06-03 16:55:28 (GMT) |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-08 19:46:57 (GMT) |
commit | f999f4c1961fe5399fd66c95860cc2d5d67e591e (patch) | |
tree | aa1b4389021f1676f04aa3a79e8b7f00ecfbb2c7 /drivers/scsi/qla2xxx/qla_def.h | |
parent | 6805c1504eb4cfd4a31c05ed88fdeb56228eb3ba (diff) | |
download | linux-fsl-qoriq-f999f4c1961fe5399fd66c95860cc2d5d67e591e.tar.xz |
[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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 88ddae0..00aa48d 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; |