OSDN Git Service

NFSv4: nfs_client_return_marked_delegations can't flush data
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 6 May 2012 23:46:30 +0000 (19:46 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 8 May 2012 16:53:21 +0000 (12:53 -0400)
commitdc327ed4cd320be689596365372a3683208c3ba0
tree9393e6e22f5a3ece9ac0e739d93303f0cf1b9dc3
parentc57d1bc5e043dbb5ba82ded07003d71a8033d899
NFSv4: nfs_client_return_marked_delegations can't flush data

Since even filemap_flush() needs to lock pages that are dirty, we
cannot risk calling it from the state manager context. Therefore,
we need to move the call to filemap_flush() to
nfs_async_inode_return_delegation().

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/delegation.c