aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-23 13:09:38 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-12-05 18:30:44 -0500
commit5d63360dd8daffc2bc86531e9a44ff9d4881b102 (patch)
tree6fdad98cdfbbe3830d8cc3679c435ed8c8be0606 /fs/nfs/nfs4_fs.h
parent69d206b5b39e298755b60e8e7056cb240182eb95 (diff)
NFSv4.1: Clean up session draining
Coalesce nfs4_check_drain_bc_complete and nfs4_check_drain_fc_complete into a single function that can be called when the slot table is known to be empty, then change nfs4_callback_free_slot() and nfs4_free_slot() to use it. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 0a109ec75e69..16b19372c4ba 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -335,6 +335,14 @@ int nfs41_discover_server_trunking(struct nfs_client *clp,
335 struct nfs_client **, struct rpc_cred *); 335 struct nfs_client **, struct rpc_cred *);
336extern void nfs4_schedule_session_recovery(struct nfs4_session *, int); 336extern void nfs4_schedule_session_recovery(struct nfs4_session *, int);
337extern void nfs41_server_notify_target_slotid_update(struct nfs_client *clp); 337extern void nfs41_server_notify_target_slotid_update(struct nfs_client *clp);
338
339extern void nfs4_session_drain_complete(struct nfs4_session *session,
340 struct nfs4_slot_table *tbl);
341
342static inline bool nfs4_session_draining(struct nfs4_session *session)
343{
344 return !!test_bit(NFS4_SESSION_DRAINING, &session->session_state);
345}
338#else 346#else
339static inline void nfs4_schedule_session_recovery(struct nfs4_session *session, int err) 347static inline void nfs4_schedule_session_recovery(struct nfs4_session *session, int err)
340{ 348{