diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-07-30 15:31:54 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-07-30 15:38:42 -0400 |
commit | b608b283a962caaa280756bc8563016a71712acf (patch) | |
tree | 217a745ab305219fab676d4a215c1a709004bd57 /fs/nfs/write.c | |
parent | 674b2222920012244ca59978b356b25412a8dcc7 (diff) |
NFS: kswapd must not block in nfs_release_page
See https://bugzilla.kernel.org/show_bug.cgi?id=16056
If other processes are blocked waiting for kswapd to free up some memory so
that they can make progress, then we cannot allow kswapd to block on those
processes.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@kernel.org
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 91679e2631ee..0a6c65a1f9d7 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -1379,7 +1379,7 @@ static const struct rpc_call_ops nfs_commit_ops = { | |||
1379 | .rpc_release = nfs_commit_release, | 1379 | .rpc_release = nfs_commit_release, |
1380 | }; | 1380 | }; |
1381 | 1381 | ||
1382 | static int nfs_commit_inode(struct inode *inode, int how) | 1382 | int nfs_commit_inode(struct inode *inode, int how) |
1383 | { | 1383 | { |
1384 | LIST_HEAD(head); | 1384 | LIST_HEAD(head); |
1385 | int may_wait = how & FLUSH_SYNC; | 1385 | int may_wait = how & FLUSH_SYNC; |
@@ -1443,7 +1443,7 @@ out_mark_dirty: | |||
1443 | return ret; | 1443 | return ret; |
1444 | } | 1444 | } |
1445 | #else | 1445 | #else |
1446 | static int nfs_commit_inode(struct inode *inode, int how) | 1446 | int nfs_commit_inode(struct inode *inode, int how) |
1447 | { | 1447 | { |
1448 | return 0; | 1448 | return 0; |
1449 | } | 1449 | } |