hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/mm/vmstat.c
....@@ -321,7 +321,6 @@
321321 long x;
322322 long t;
323323
324
- preempt_disable_rt();
325324 x = delta + __this_cpu_read(*p);
326325
327326 t = __this_cpu_read(pcp->stat_threshold);
....@@ -331,7 +330,6 @@
331330 x = 0;
332331 }
333332 __this_cpu_write(*p, x);
334
- preempt_enable_rt();
335333 }
336334 EXPORT_SYMBOL(__mod_zone_page_state);
337335
....@@ -348,7 +346,6 @@
348346 delta >>= PAGE_SHIFT;
349347 }
350348
351
- preempt_disable_rt();
352349 x = delta + __this_cpu_read(*p);
353350
354351 t = __this_cpu_read(pcp->stat_threshold);
....@@ -358,7 +355,6 @@
358355 x = 0;
359356 }
360357 __this_cpu_write(*p, x);
361
- preempt_enable_rt();
362358 }
363359 EXPORT_SYMBOL(__mod_node_page_state);
364360
....@@ -391,7 +387,6 @@
391387 s8 __percpu *p = pcp->vm_stat_diff + item;
392388 s8 v, t;
393389
394
- preempt_disable_rt();
395390 v = __this_cpu_inc_return(*p);
396391 t = __this_cpu_read(pcp->stat_threshold);
397392 if (unlikely(v > t)) {
....@@ -400,7 +395,6 @@
400395 zone_page_state_add(v + overstep, zone, item);
401396 __this_cpu_write(*p, -overstep);
402397 }
403
- preempt_enable_rt();
404398 }
405399
406400 void __inc_node_state(struct pglist_data *pgdat, enum node_stat_item item)
....@@ -411,7 +405,6 @@
411405
412406 VM_WARN_ON_ONCE(vmstat_item_in_bytes(item));
413407
414
- preempt_disable_rt();
415408 v = __this_cpu_inc_return(*p);
416409 t = __this_cpu_read(pcp->stat_threshold);
417410 if (unlikely(v > t)) {
....@@ -420,7 +413,6 @@
420413 node_page_state_add(v + overstep, pgdat, item);
421414 __this_cpu_write(*p, -overstep);
422415 }
423
- preempt_enable_rt();
424416 }
425417
426418 void __inc_zone_page_state(struct page *page, enum zone_stat_item item)
....@@ -441,7 +433,6 @@
441433 s8 __percpu *p = pcp->vm_stat_diff + item;
442434 s8 v, t;
443435
444
- preempt_disable_rt();
445436 v = __this_cpu_dec_return(*p);
446437 t = __this_cpu_read(pcp->stat_threshold);
447438 if (unlikely(v < - t)) {
....@@ -450,7 +441,6 @@
450441 zone_page_state_add(v - overstep, zone, item);
451442 __this_cpu_write(*p, overstep);
452443 }
453
- preempt_enable_rt();
454444 }
455445
456446 void __dec_node_state(struct pglist_data *pgdat, enum node_stat_item item)
....@@ -461,7 +451,6 @@
461451
462452 VM_WARN_ON_ONCE(vmstat_item_in_bytes(item));
463453
464
- preempt_disable_rt();
465454 v = __this_cpu_dec_return(*p);
466455 t = __this_cpu_read(pcp->stat_threshold);
467456 if (unlikely(v < - t)) {
....@@ -470,7 +459,6 @@
470459 node_page_state_add(v - overstep, pgdat, item);
471460 __this_cpu_write(*p, overstep);
472461 }
473
- preempt_enable_rt();
474462 }
475463
476464 void __dec_zone_page_state(struct page *page, enum zone_stat_item item)