hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/md/raid5.c
....@@ -2217,9 +2217,8 @@
22172217 struct raid5_percpu *percpu;
22182218 unsigned long cpu;
22192219
2220
- cpu = get_cpu_light();
2220
+ cpu = get_cpu();
22212221 percpu = per_cpu_ptr(conf->percpu, cpu);
2222
- spin_lock(&percpu->lock);
22232222 if (test_bit(STRIPE_OP_BIOFILL, &ops_request)) {
22242223 ops_run_biofill(sh);
22252224 overlap_clear++;
....@@ -2278,8 +2277,7 @@
22782277 if (test_and_clear_bit(R5_Overlap, &dev->flags))
22792278 wake_up(&sh->raid_conf->wait_for_overlap);
22802279 }
2281
- spin_unlock(&percpu->lock);
2282
- put_cpu_light();
2280
+ put_cpu();
22832281 }
22842282
22852283 static void free_stripe(struct kmem_cache *sc, struct stripe_head *sh)
....@@ -7109,7 +7107,6 @@
71097107 __func__, cpu);
71107108 return -ENOMEM;
71117109 }
7112
- spin_lock_init(&per_cpu_ptr(conf->percpu, cpu)->lock);
71137110 return 0;
71147111 }
71157112