summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/blk-iopoll.c6
-rw-r--r--block/blk-softirq.c8
-rw-r--r--fs/fscache/object.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/block/blk-iopoll.c b/block/blk-iopoll.c
index 4b8d9b541112..1855bf51edb0 100644
--- a/block/blk-iopoll.c
+++ b/block/blk-iopoll.c
@@ -35,7 +35,7 @@ void blk_iopoll_sched(struct blk_iopoll *iop)
35 unsigned long flags; 35 unsigned long flags;
36 36
37 local_irq_save(flags); 37 local_irq_save(flags);
38 list_add_tail(&iop->list, &__get_cpu_var(blk_cpu_iopoll)); 38 list_add_tail(&iop->list, this_cpu_ptr(&blk_cpu_iopoll));
39 __raise_softirq_irqoff(BLOCK_IOPOLL_SOFTIRQ); 39 __raise_softirq_irqoff(BLOCK_IOPOLL_SOFTIRQ);
40 local_irq_restore(flags); 40 local_irq_restore(flags);
41} 41}
@@ -79,7 +79,7 @@ EXPORT_SYMBOL(blk_iopoll_complete);
79 79
80static void blk_iopoll_softirq(struct softirq_action *h) 80static void blk_iopoll_softirq(struct softirq_action *h)
81{ 81{
82 struct list_head *list = &__get_cpu_var(blk_cpu_iopoll); 82 struct list_head *list = this_cpu_ptr(&blk_cpu_iopoll);
83 int rearm = 0, budget = blk_iopoll_budget; 83 int rearm = 0, budget = blk_iopoll_budget;
84 unsigned long start_time = jiffies; 84 unsigned long start_time = jiffies;
85 85
@@ -201,7 +201,7 @@ static int blk_iopoll_cpu_notify(struct notifier_block *self,
201 201
202 local_irq_disable(); 202 local_irq_disable();
203 list_splice_init(&per_cpu(blk_cpu_iopoll, cpu), 203 list_splice_init(&per_cpu(blk_cpu_iopoll, cpu),
204 &__get_cpu_var(blk_cpu_iopoll)); 204 this_cpu_ptr(&blk_cpu_iopoll));
205 __raise_softirq_irqoff(BLOCK_IOPOLL_SOFTIRQ); 205 __raise_softirq_irqoff(BLOCK_IOPOLL_SOFTIRQ);
206 local_irq_enable(); 206 local_irq_enable();
207 } 207 }
diff --git a/block/blk-softirq.c b/block/blk-softirq.c
index ec9e60636f43..ce4b8bfd3d27 100644
--- a/block/blk-softirq.c
+++ b/block/blk-softirq.c
@@ -23,7 +23,7 @@ static void blk_done_softirq(struct softirq_action *h)
23 struct list_head *cpu_list, local_list; 23 struct list_head *cpu_list, local_list;
24 24
25 local_irq_disable(); 25 local_irq_disable();
26 cpu_list = &__get_cpu_var(blk_cpu_done); 26 cpu_list = this_cpu_ptr(&blk_cpu_done);
27 list_replace_init(cpu_list, &local_list); 27 list_replace_init(cpu_list, &local_list);
28 local_irq_enable(); 28 local_irq_enable();
29 29
@@ -44,7 +44,7 @@ static void trigger_softirq(void *data)
44 struct list_head *list; 44 struct list_head *list;
45 45
46 local_irq_save(flags); 46 local_irq_save(flags);
47 list = &__get_cpu_var(blk_cpu_done); 47 list = this_cpu_ptr(&blk_cpu_done);
48 list_add_tail(&rq->csd.list, list); 48 list_add_tail(&rq->csd.list, list);
49 49
50 if (list->next == &rq->csd.list) 50 if (list->next == &rq->csd.list)
@@ -90,7 +90,7 @@ static int blk_cpu_notify(struct notifier_block *self, unsigned long action,
90 90
91 local_irq_disable(); 91 local_irq_disable();
92 list_splice_init(&per_cpu(blk_cpu_done, cpu), 92 list_splice_init(&per_cpu(blk_cpu_done, cpu),
93 &__get_cpu_var(blk_cpu_done)); 93 this_cpu_ptr(&blk_cpu_done));
94 raise_softirq_irqoff(BLOCK_SOFTIRQ); 94 raise_softirq_irqoff(BLOCK_SOFTIRQ);
95 local_irq_enable(); 95 local_irq_enable();
96 } 96 }
@@ -135,7 +135,7 @@ void __blk_complete_request(struct request *req)
135 if (ccpu == cpu || shared) { 135 if (ccpu == cpu || shared) {
136 struct list_head *list; 136 struct list_head *list;
137do_local: 137do_local:
138 list = &__get_cpu_var(blk_cpu_done); 138 list = this_cpu_ptr(&blk_cpu_done);
139 list_add_tail(&req->csd.list, list); 139 list_add_tail(&req->csd.list, list);
140 140
141 /* 141 /*
diff --git a/fs/fscache/object.c b/fs/fscache/object.c
index 86d75a60b20c..3b0712213993 100644
--- a/fs/fscache/object.c
+++ b/fs/fscache/object.c
@@ -796,7 +796,7 @@ void fscache_enqueue_object(struct fscache_object *object)
796 */ 796 */
797bool fscache_object_sleep_till_congested(signed long *timeoutp) 797bool fscache_object_sleep_till_congested(signed long *timeoutp)
798{ 798{
799 wait_queue_head_t *cong_wq = &__get_cpu_var(fscache_object_cong_wait); 799 wait_queue_head_t *cong_wq = this_cpu_ptr(&fscache_object_cong_wait);
800 DEFINE_WAIT(wait); 800 DEFINE_WAIT(wait);
801 801
802 if (fscache_object_congested()) 802 if (fscache_object_congested())