diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2012-02-09 14:15:56 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-02-19 09:26:45 -0500 |
commit | 7a67735b07aa1bf61b8535eec6f6fb6474cf7926 (patch) | |
tree | 6f4457b3dad76833c3f71ff98cbf43aca85f54b1 /drivers/scsi/qla2xxx/qla_def.h | |
parent | 733a95bd39d79c5759c1f7016a94c08e7367076d (diff) |
[SCSI] qla2xxx: Cache swl during fabric discovery.
Rather than continuously allocating and freeing swl within the discovery
process, simply pre-allocate it the first time that it's needed, cache it
through the rest of the lifecycle of the driver and free it at module unload.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.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 9d353ca4e1c7..649748ffbe79 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -2674,6 +2674,8 @@ struct qla_hw_data { | |||
2674 | void *async_pd; | 2674 | void *async_pd; |
2675 | dma_addr_t async_pd_dma; | 2675 | dma_addr_t async_pd_dma; |
2676 | 2676 | ||
2677 | void *swl; | ||
2678 | |||
2677 | /* These are used by mailbox operations. */ | 2679 | /* These are used by mailbox operations. */ |
2678 | volatile uint16_t mailbox_out[MAILBOX_REGISTER_COUNT]; | 2680 | volatile uint16_t mailbox_out[MAILBOX_REGISTER_COUNT]; |
2679 | 2681 | ||