]> git.baikalelectronics.ru Git - kernel.git/commit
mm, slub: don't disable irq for debug_check_no_locks_freed()
authorVlastimil Babka <vbabka@suse.cz>
Thu, 20 May 2021 23:25:06 +0000 (01:25 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Fri, 3 Sep 2021 21:56:49 +0000 (23:56 +0200)
commitabf2773857551ba39c3038d307daf4ddacb87f75
tree1d81219e9e0d6fb518cbe1f98a0f85f404601248
parentbcfeadab0b09a63ea8351c9add54cc13ecbbb6a7
mm, slub: don't disable irq for debug_check_no_locks_freed()

In slab_free_hook() we disable irqs around the debug_check_no_locks_freed()
call, which is unnecessary, as irqs are already being disabled inside the call.
This seems to be leftover from the past where there were more calls inside the
irq disabled sections. Remove the irq disable/enable operations.

Mel noted:
> Looks like it was needed for kmemcheck which went away back in 4.15

Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
mm/slub.c