diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-05 17:05:08 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-05 22:16:50 -0500 |
commit | e4af440aaf390ac1d39b26ef6cf4a28bcb6a5979 (patch) | |
tree | 91732a637e2693aefa6f4fbba8daaf0e6cf34e4c /fs/nfs | |
parent | 5a0ec8acb945e302ce819b4a9787796ccf284548 (diff) |
NFSv4.1: pnfs_send_layoutreturn should use GFP_NOFS
In we want to be able to call pnfs_send_layoutreturn() from within the
writeback path, we really want it to use GFP_NOFS in order to prevent
recursion.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/pnfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 703501d3ed19..a1d8620e8cb7 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c | |||
@@ -948,7 +948,7 @@ pnfs_send_layoutreturn(struct pnfs_layout_hdr *lo, nfs4_stateid stateid, | |||
948 | struct nfs4_layoutreturn *lrp; | 948 | struct nfs4_layoutreturn *lrp; |
949 | int status = 0; | 949 | int status = 0; |
950 | 950 | ||
951 | lrp = kzalloc(sizeof(*lrp), GFP_KERNEL); | 951 | lrp = kzalloc(sizeof(*lrp), GFP_NOFS); |
952 | if (unlikely(lrp == NULL)) { | 952 | if (unlikely(lrp == NULL)) { |
953 | status = -ENOMEM; | 953 | status = -ENOMEM; |
954 | spin_lock(&ino->i_lock); | 954 | spin_lock(&ino->i_lock); |