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
This commit is contained in:
@ -1379,7 +1379,7 @@ static const struct rpc_call_ops nfs_commit_ops = {
|
||||
.rpc_release = nfs_commit_release,
|
||||
};
|
||||
|
||||
static int nfs_commit_inode(struct inode *inode, int how)
|
||||
int nfs_commit_inode(struct inode *inode, int how)
|
||||
{
|
||||
LIST_HEAD(head);
|
||||
int may_wait = how & FLUSH_SYNC;
|
||||
@ -1443,7 +1443,7 @@ out_mark_dirty:
|
||||
return ret;
|
||||
}
|
||||
#else
|
||||
static int nfs_commit_inode(struct inode *inode, int how)
|
||||
int nfs_commit_inode(struct inode *inode, int how)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user