diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2009-06-03 12:55:28 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-08 15:46:57 -0400 |
commit | f999f4c1961fe5399fd66c95860cc2d5d67e591e (patch) | |
tree | aa1b4389021f1676f04aa3a79e8b7f00ecfbb2c7 /drivers/scsi/qla2xxx/qla_def.h | |
parent | 6805c1504eb4cfd4a31c05ed88fdeb56228eb3ba (diff) |
[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 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 { | |||
2561 | struct list_head list; | 2561 | struct list_head list; |
2562 | struct list_head vp_fcports; /* list of fcports */ | 2562 | struct list_head vp_fcports; /* list of fcports */ |
2563 | struct list_head work_list; | 2563 | struct list_head work_list; |
2564 | spinlock_t work_lock; | ||
2565 | |||
2564 | /* Commonly used flags and state information. */ | 2566 | /* Commonly used flags and state information. */ |
2565 | struct Scsi_Host *host; | 2567 | struct Scsi_Host *host; |
2566 | unsigned long host_no; | 2568 | unsigned long host_no; |