.. | .. |
---|
2217 | 2217 | struct raid5_percpu *percpu; |
---|
2218 | 2218 | unsigned long cpu; |
---|
2219 | 2219 | |
---|
2220 | | - cpu = get_cpu_light(); |
---|
| 2220 | + cpu = get_cpu(); |
---|
2221 | 2221 | percpu = per_cpu_ptr(conf->percpu, cpu); |
---|
2222 | | - spin_lock(&percpu->lock); |
---|
2223 | 2222 | if (test_bit(STRIPE_OP_BIOFILL, &ops_request)) { |
---|
2224 | 2223 | ops_run_biofill(sh); |
---|
2225 | 2224 | overlap_clear++; |
---|
.. | .. |
---|
2278 | 2277 | if (test_and_clear_bit(R5_Overlap, &dev->flags)) |
---|
2279 | 2278 | wake_up(&sh->raid_conf->wait_for_overlap); |
---|
2280 | 2279 | } |
---|
2281 | | - spin_unlock(&percpu->lock); |
---|
2282 | | - put_cpu_light(); |
---|
| 2280 | + put_cpu(); |
---|
2283 | 2281 | } |
---|
2284 | 2282 | |
---|
2285 | 2283 | static void free_stripe(struct kmem_cache *sc, struct stripe_head *sh) |
---|
.. | .. |
---|
7109 | 7107 | __func__, cpu); |
---|
7110 | 7108 | return -ENOMEM; |
---|
7111 | 7109 | } |
---|
7112 | | - spin_lock_init(&per_cpu_ptr(conf->percpu, cpu)->lock); |
---|
7113 | 7110 | return 0; |
---|
7114 | 7111 | } |
---|
7115 | 7112 | |
---|