diff options
author | wenxiong@linux.vnet.ibm.com <wenxiong@linux.vnet.ibm.com> | 2013-01-11 18:43:52 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-01-29 18:48:52 -0500 |
commit | b53d124a154d0022437e06cf737af6bcc7b1f190 (patch) | |
tree | 43a86043e068a036bf8ce4c4f38bdbe9e90d54eb /drivers/scsi/ipr.h | |
parent | 56d6aa33d3f68471466cb183d6e04b508dfb296f (diff) |
[SCSI] ipr: Implement block iopoll
This patch implements blk iopoll in ipr driver for performance improvement.
Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r-- | drivers/scsi/ipr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index 6fade571755c..c5d1e624c658 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/libata.h> | 32 | #include <linux/libata.h> |
33 | #include <linux/list.h> | 33 | #include <linux/list.h> |
34 | #include <linux/kref.h> | 34 | #include <linux/kref.h> |
35 | #include <linux/blk-iopoll.h> | ||
35 | #include <scsi/scsi.h> | 36 | #include <scsi/scsi.h> |
36 | #include <scsi/scsi_cmnd.h> | 37 | #include <scsi/scsi_cmnd.h> |
37 | 38 | ||
@@ -492,6 +493,8 @@ struct ipr_hrr_queue { | |||
492 | u8 allow_interrupts:1; | 493 | u8 allow_interrupts:1; |
493 | u8 ioa_is_dead:1; | 494 | u8 ioa_is_dead:1; |
494 | u8 allow_cmds:1; | 495 | u8 allow_cmds:1; |
496 | |||
497 | struct blk_iopoll iopoll; | ||
495 | }; | 498 | }; |
496 | 499 | ||
497 | /* Command packet structure */ | 500 | /* Command packet structure */ |
@@ -1348,6 +1351,7 @@ struct ipr_chip_cfg_t { | |||
1348 | u16 max_cmds; | 1351 | u16 max_cmds; |
1349 | u8 cache_line_size; | 1352 | u8 cache_line_size; |
1350 | u8 clear_isr; | 1353 | u8 clear_isr; |
1354 | u32 iopoll_weight; | ||
1351 | struct ipr_interrupt_offsets regs; | 1355 | struct ipr_interrupt_offsets regs; |
1352 | }; | 1356 | }; |
1353 | 1357 | ||
@@ -1534,6 +1538,8 @@ struct ipr_ioa_cfg { | |||
1534 | char desc[22]; | 1538 | char desc[22]; |
1535 | } vectors_info[IPR_MAX_MSIX_VECTORS]; | 1539 | } vectors_info[IPR_MAX_MSIX_VECTORS]; |
1536 | 1540 | ||
1541 | u32 iopoll_weight; | ||
1542 | |||
1537 | }; /* struct ipr_ioa_cfg */ | 1543 | }; /* struct ipr_ioa_cfg */ |
1538 | 1544 | ||
1539 | struct ipr_cmnd { | 1545 | struct ipr_cmnd { |