Re: nfs client lockdep warning

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Herbert Xu <herbert@...>
Cc: J. Bruce Fields <bfields@...>, <netdev@...>, <linux-nfs@...>, Trond Myklebust <trond@...>, Ingo Molnar <mingo@...>, Nick Piggin <npiggin@...>
Date: Friday, January 9, 2009 - 2:51 am

On Fri, 2009-01-09 at 17:23 +1100, Herbert Xu wrote:

Ahh, so something like this ought to fix it I think...

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
diff --git a/mm/memory.c b/mm/memory.c
index 7b9db65..a2ed52e 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3079,6 +3079,9 @@ void print_vma_addr(char *prefix, unsigned long ip)
 #ifdef CONFIG_PROVE_LOCKING
 void might_fault(void)
 {
+	if (get_fs() == KERNEL_DS)
+		return;
+
 	might_sleep();
 	/*
 	 * it would be nicer only to annotate paths which are not under


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: nfs client lockdep warning, J. Bruce Fields, (Thu Jan 8, 5:20 pm)
Re: nfs client lockdep warning, Herbert Xu, (Fri Jan 9, 12:33 am)
Re: nfs client lockdep warning, Peter Zijlstra, (Fri Jan 9, 1:58 am)
Re: nfs client lockdep warning, Herbert Xu, (Fri Jan 9, 2:23 am)
Re: nfs client lockdep warning, Peter Zijlstra, (Fri Jan 9, 2:51 am)
Re: nfs client lockdep warning, J. Bruce Fields, (Fri Jan 9, 4:29 pm)
Re: nfs client lockdep warning, Peter Zijlstra, (Mon Jan 12, 8:02 am)
Re: nfs client lockdep warning, Ingo Molnar, (Mon Jan 12, 8:10 am)