Commit b53d124a authored by wenxiong@linux.vnet.ibm.com's avatar wenxiong@linux.vnet.ibm.com Committed by James Bottomley

[SCSI] ipr: Implement block iopoll

This patch implements blk iopoll in ipr driver for performance improvement.
Signed-off-by: default avatarWen Xiong <wenxiong@linux.vnet.ibm.com>
Acked-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 56d6aa33
This diff is collapsed.
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <linux/libata.h> #include <linux/libata.h>
#include <linux/list.h> #include <linux/list.h>
#include <linux/kref.h> #include <linux/kref.h>
#include <linux/blk-iopoll.h>
#include <scsi/scsi.h> #include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h> #include <scsi/scsi_cmnd.h>
...@@ -492,6 +493,8 @@ struct ipr_hrr_queue { ...@@ -492,6 +493,8 @@ struct ipr_hrr_queue {
u8 allow_interrupts:1; u8 allow_interrupts:1;
u8 ioa_is_dead:1; u8 ioa_is_dead:1;
u8 allow_cmds:1; u8 allow_cmds:1;
struct blk_iopoll iopoll;
}; };
/* Command packet structure */ /* Command packet structure */
...@@ -1348,6 +1351,7 @@ struct ipr_chip_cfg_t { ...@@ -1348,6 +1351,7 @@ struct ipr_chip_cfg_t {
u16 max_cmds; u16 max_cmds;
u8 cache_line_size; u8 cache_line_size;
u8 clear_isr; u8 clear_isr;
u32 iopoll_weight;
struct ipr_interrupt_offsets regs; struct ipr_interrupt_offsets regs;
}; };
...@@ -1534,6 +1538,8 @@ struct ipr_ioa_cfg { ...@@ -1534,6 +1538,8 @@ struct ipr_ioa_cfg {
char desc[22]; char desc[22];
} vectors_info[IPR_MAX_MSIX_VECTORS]; } vectors_info[IPR_MAX_MSIX_VECTORS];
u32 iopoll_weight;
}; /* struct ipr_ioa_cfg */ }; /* struct ipr_ioa_cfg */
struct ipr_cmnd { struct ipr_cmnd {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment