[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1584065460-22205-1-git-send-email-jrdr.linux@gmail.com>
Date: Fri, 13 Mar 2020 07:41:00 +0530
From: Souptick Joarder <jrdr.linux@...il.com>
To: jglisse@...hat.com, akpm@...ux-foundation.org
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Souptick Joarder <jrdr.linux@...il.com>
Subject: [PATCH] mm/hmm.c : Remove additional check for lockdep_assert_held()
walk_page_range() already has a check for lockdep_assert_held().
So additional check for lockdep_assert_held() can be removed from
hmm_range_fault().
Signed-off-by: Souptick Joarder <jrdr.linux@...il.com>
---
mm/hmm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/hmm.c b/mm/hmm.c
index 72e5a6d..b201e1e 100644
--- a/mm/hmm.c
+++ b/mm/hmm.c
@@ -681,7 +681,6 @@ long hmm_range_fault(struct hmm_range *range, unsigned int flags)
struct mm_struct *mm = range->notifier->mm;
int ret;
- lockdep_assert_held(&mm->mmap_sem);
do {
/* If range is no longer valid force retry. */
--
1.9.1
Powered by blists - more mailing lists