diff options
Diffstat (limited to 'block/blk-iopoll.c')
-rw-r--r-- | block/blk-iopoll.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block/blk-iopoll.c b/block/blk-iopoll.c index df6f192c9f67..0671d4614b08 100644 --- a/block/blk-iopoll.c +++ b/block/blk-iopoll.c | |||
@@ -17,6 +17,8 @@ | |||
17 | int blk_iopoll_enabled = 1; | 17 | int blk_iopoll_enabled = 1; |
18 | EXPORT_SYMBOL(blk_iopoll_enabled); | 18 | EXPORT_SYMBOL(blk_iopoll_enabled); |
19 | 19 | ||
20 | static unsigned int blk_iopoll_budget __read_mostly = 256; | ||
21 | |||
20 | static DEFINE_PER_CPU(struct list_head, blk_cpu_iopoll); | 22 | static DEFINE_PER_CPU(struct list_head, blk_cpu_iopoll); |
21 | 23 | ||
22 | /** | 24 | /** |
@@ -78,8 +80,8 @@ EXPORT_SYMBOL(blk_iopoll_complete); | |||
78 | static void blk_iopoll_softirq(struct softirq_action *h) | 80 | static void blk_iopoll_softirq(struct softirq_action *h) |
79 | { | 81 | { |
80 | struct list_head *list = &__get_cpu_var(blk_cpu_iopoll); | 82 | struct list_head *list = &__get_cpu_var(blk_cpu_iopoll); |
83 | int rearm = 0, budget = blk_iopoll_budget; | ||
81 | unsigned long start_time = jiffies; | 84 | unsigned long start_time = jiffies; |
82 | int rearm = 0, budget = 64; | ||
83 | 85 | ||
84 | local_irq_disable(); | 86 | local_irq_disable(); |
85 | 87 | ||