diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-12 03:05:07 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-11 03:40:24 (GMT) |
commit | b39e625b6e75aa70e26c13f9378756bb5f2af032 (patch) | |
tree | acf17b925b359b051f476c7e9500c4f4d60f5d0c /fs/nfs/nfs4state.c | |
parent | 4a35bd41aff5714deb41c8f14766df3871e2e8f7 (diff) | |
download | linux-fsl-qoriq-b39e625b6e75aa70e26c13f9378756bb5f2af032.tar.xz |
NFSv4: Clean up nfs4_call_async()
Use rpc_run_task() instead of doing it ourselves.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4state.c')
-rw-r--r-- | fs/nfs/nfs4state.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index a85138e..5d7ffbf 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -375,10 +375,11 @@ void nfs4_close_state(struct path *path, struct nfs4_state *state, mode_t mode) spin_unlock(&inode->i_lock); spin_unlock(&owner->so_lock); - if (oldstate != newstate && nfs4_do_close(path, state) == 0) - return; - nfs4_put_open_state(state); - nfs4_put_state_owner(owner); + if (oldstate == newstate) { + nfs4_put_open_state(state); + nfs4_put_state_owner(owner); + } else + nfs4_do_close(path, state); } /* |