Merge tag 'xfs-5.11-merge-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
[linux-2.6-microblaze.git] / mm / mmu_notifier.c
index 5654dd1..61ee40e 100644 (file)
@@ -612,13 +612,6 @@ int __mmu_notifier_register(struct mmu_notifier *subscription,
        mmap_assert_write_locked(mm);
        BUG_ON(atomic_read(&mm->mm_users) <= 0);
 
-       if (IS_ENABLED(CONFIG_LOCKDEP)) {
-               fs_reclaim_acquire(GFP_KERNEL);
-               lock_map_acquire(&__mmu_notifier_invalidate_range_start_map);
-               lock_map_release(&__mmu_notifier_invalidate_range_start_map);
-               fs_reclaim_release(GFP_KERNEL);
-       }
-
        if (!mm->notifier_subscriptions) {
                /*
                 * kmalloc cannot be called under mm_take_all_locks(), but we