aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4state.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-06-11 23:05:07 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-10 23:40:24 -0400
commitb39e625b6e75aa70e26c13f9378756bb5f2af032 (patch)
treeacf17b925b359b051f476c7e9500c4f4d60f5d0c /fs/nfs/nfs4state.c
parent4a35bd41aff5714deb41c8f14766df3871e2e8f7 (diff)
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.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c
index a85138ef67ad..5d7ffbfc3483 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)
375 spin_unlock(&inode->i_lock); 375 spin_unlock(&inode->i_lock);
376 spin_unlock(&owner->so_lock); 376 spin_unlock(&owner->so_lock);
377 377
378 if (oldstate != newstate && nfs4_do_close(path, state) == 0) 378 if (oldstate == newstate) {
379 return; 379 nfs4_put_open_state(state);
380 nfs4_put_open_state(state); 380 nfs4_put_state_owner(owner);
381 nfs4_put_state_owner(owner); 381 } else
382 nfs4_do_close(path, state);
382} 383}
383 384
384/* 385/*