All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] NFS: Use GFP_NOFS in nfs_direct_req_alloc
@ 2009-09-08 22:05 Chuck Lever
       [not found] ` <20090908220230.7590.69833.stgit-RytpoXr2tKZ9HhUboXbp9zCvJB+x5qRC@public.gmane.org>
  0 siblings, 1 reply; 8+ messages in thread
From: Chuck Lever @ 2009-09-08 22:05 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs

Don't dive into memory reclaim in the NFS direct I/O paths, otherwise
we can deadlock.

Reported by: Wengang Wang <wen.gang.wang@oracle.com>
Fix-suggested-by: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---

Trond-

Thoughts?

 fs/nfs/direct.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c
index e4e089a..00f06b8 100644
--- a/fs/nfs/direct.c
+++ b/fs/nfs/direct.c
@@ -149,7 +149,7 @@ static inline struct nfs_direct_req *nfs_direct_req_alloc(void)
 {
 	struct nfs_direct_req *dreq;
 
-	dreq = kmem_cache_alloc(nfs_direct_cachep, GFP_KERNEL);
+	dreq = kmem_cache_alloc(nfs_direct_cachep, GFP_NOFS);
 	if (!dreq)
 		return NULL;
 


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-09-09  3:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08 22:05 [PATCH] NFS: Use GFP_NOFS in nfs_direct_req_alloc Chuck Lever
     [not found] ` <20090908220230.7590.69833.stgit-RytpoXr2tKZ9HhUboXbp9zCvJB+x5qRC@public.gmane.org>
2009-09-08 22:32   ` Trond Myklebust
     [not found]     ` <1252449178.8099.64.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-09-08 22:43       ` Chuck Lever
2009-09-08 23:05         ` Trond Myklebust
     [not found]           ` <1252451130.8099.81.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-09-09  1:01             ` Chuck Lever
2009-09-09  1:37               ` Trond Myklebust
     [not found]                 ` <1252460233.5092.12.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-09-09  2:16                   ` Chuck Lever
2009-09-09  3:49                     ` Trond Myklebust

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.