diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-21 02:31:51 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-09-28 22:03:12 +0200 |
commit | 1f7977c1368afc483908281daaffd31bca5a8d1e (patch) | |
tree | ab8bcc2e66719825ee91a5559250fc21882cf397 /fs/nfs/nfs4state.c | |
parent | NFSv4.1: Fix a race in the pNFS return-on-close code (diff) | |
download | linux-1f7977c1368afc483908281daaffd31bca5a8d1e.tar.xz linux-1f7977c1368afc483908281daaffd31bca5a8d1e.zip |
NFSv4.1: Simplify the pNFS return-on-close code
Confine it to the nfs4_do_close() code.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index fc6cfe68ad1d..a5331ec094a6 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -729,11 +729,8 @@ static void __nfs4_close(struct nfs4_state *state, if (!call_close) { nfs4_put_open_state(state); nfs4_put_state_owner(owner); - } else { - bool roc = pnfs_roc(state->inode); - - nfs4_do_close(state, gfp_mask, wait, roc); - } + } else + nfs4_do_close(state, gfp_mask, wait); } void nfs4_close_state(struct nfs4_state *state, fmode_t fmode) |