Commit 5875e59
committed
mm/slub: simplify __cmpxchg_double_slab() and slab_[un]lock()
The PREEMPT_RT specific disabling of irqs in __cmpxchg_double_slab()
(through slab_[un]lock()) is unnecessary as bit_spin_lock() disables
preemption and that's sufficient on PREEMPT_RT where no allocation/free
operation is performed in hardirq context and so can't interrupt the
current operation.
That means we no longer need the slab_[un]lock() wrappers, so delete
them and rename the current __slab_[un]lock() to slab_[un]lock().
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>1 parent 4ef3f5a commit 5875e59
1 file changed
Lines changed: 12 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | 465 | | |
480 | 466 | | |
481 | | - | |
482 | | - | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
483 | 471 | | |
484 | 472 | | |
485 | 473 | | |
| |||
498 | 486 | | |
499 | 487 | | |
500 | 488 | | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
| 489 | + | |
505 | 490 | | |
506 | 491 | | |
507 | 492 | | |
508 | 493 | | |
509 | | - | |
| 494 | + | |
510 | 495 | | |
511 | 496 | | |
512 | | - | |
| 497 | + | |
513 | 498 | | |
514 | 499 | | |
515 | 500 | | |
| |||
540 | 525 | | |
541 | 526 | | |
542 | 527 | | |
543 | | - | |
| 528 | + | |
544 | 529 | | |
545 | 530 | | |
546 | 531 | | |
547 | 532 | | |
548 | | - | |
| 533 | + | |
549 | 534 | | |
550 | 535 | | |
551 | 536 | | |
552 | | - | |
| 537 | + | |
553 | 538 | | |
554 | 539 | | |
555 | 540 | | |
| |||
0 commit comments