]> Git Repo - linux.git/commit
mm/mmu_notifiers: prime lockdep
authorDaniel Vetter <[email protected]>
Mon, 26 Aug 2019 20:14:22 +0000 (22:14 +0200)
committerJason Gunthorpe <[email protected]>
Sat, 7 Sep 2019 07:28:04 +0000 (04:28 -0300)
commit66204f1d2d1b42962033dfa867442f3dfd898d5f
treee69ce0dea0a7ec2b48d1fd73e1e59e305993942f
parent23b68395c7c78a764e8963fc15a7cfd318bf187f
mm/mmu_notifiers: prime lockdep

We want to teach lockdep that mmu notifiers can be called from direct
reclaim paths, since on many CI systems load might never reach that
level (e.g. when just running fuzzer or small functional tests).

I've put the annotation into mmu_notifier_register since only when we have
mmu notifiers registered is there any point in teaching lockdep about
them. Also, we already have a kmalloc(, GFP_KERNEL), so this is safe.

Link: https://lore.kernel.org/r/[email protected]
Suggested-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
mm/mmu_notifier.c
This page took 0.057053 seconds and 4 git commands to generate.