aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc.h
diff options
context:
space:
mode:
authorJames Smart <james.smart@emulex.com>2013-04-17 20:17:40 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-05-02 13:01:30 -0700
commita40fc5f0d052d468f66da5fab3be0adb6cb6443d (patch)
treef0e686c83a78ff12d32761e30a36eb8a2a425190 /drivers/scsi/lpfc/lpfc.h
parent[SCSI] lpfc 8.3.39: Fixed crash when processing bsg's sg list with high memory pages (diff)
downloadlinux-dev-a40fc5f0d052d468f66da5fab3be0adb6cb6443d.tar.xz
linux-dev-a40fc5f0d052d468f66da5fab3be0adb6cb6443d.zip
[SCSI] lpfc 8.3.39: Reduced spinlock contention on SCSI buffer list
Signed-off-by: James Smart <james.smart@emulex.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc.h')
-rw-r--r--drivers/scsi/lpfc/lpfc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h
index 924ceaaf1336..2d2261f4eab0 100644
--- a/drivers/scsi/lpfc/lpfc.h
+++ b/drivers/scsi/lpfc/lpfc.h
@@ -813,8 +813,10 @@ struct lpfc_hba {
uint64_t bg_reftag_err_cnt;
/* fastpath list. */
- spinlock_t scsi_buf_list_lock;
- struct list_head lpfc_scsi_buf_list;
+ spinlock_t scsi_buf_list_get_lock; /* SCSI buf alloc list lock */
+ spinlock_t scsi_buf_list_put_lock; /* SCSI buf free list lock */
+ struct list_head lpfc_scsi_buf_list_get;
+ struct list_head lpfc_scsi_buf_list_put;
uint32_t total_scsi_bufs;
struct list_head lpfc_iocb_list;
uint32_t total_iocbq_bufs;