aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4session.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/nfs4session.h')
-rw-r--r--fs/nfs/nfs4session.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/nfs/nfs4session.h b/fs/nfs/nfs4session.h
index e3ea2c5324d6..5b51298d1d03 100644
--- a/fs/nfs/nfs4session.h
+++ b/fs/nfs/nfs4session.h
@@ -77,6 +77,8 @@ extern int nfs4_setup_slot_table(struct nfs4_slot_table *tbl,
77 unsigned int max_reqs, const char *queue); 77 unsigned int max_reqs, const char *queue);
78extern void nfs4_shutdown_slot_table(struct nfs4_slot_table *tbl); 78extern void nfs4_shutdown_slot_table(struct nfs4_slot_table *tbl);
79extern struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl); 79extern struct nfs4_slot *nfs4_alloc_slot(struct nfs4_slot_table *tbl);
80extern struct nfs4_slot *nfs4_lookup_slot(struct nfs4_slot_table *tbl, u32 slotid);
81extern bool nfs4_try_to_lock_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
80extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot); 82extern void nfs4_free_slot(struct nfs4_slot_table *tbl, struct nfs4_slot *slot);
81extern void nfs4_slot_tbl_drain_complete(struct nfs4_slot_table *tbl); 83extern void nfs4_slot_tbl_drain_complete(struct nfs4_slot_table *tbl);
82bool nfs41_wake_and_assign_slot(struct nfs4_slot_table *tbl, 84bool nfs41_wake_and_assign_slot(struct nfs4_slot_table *tbl,
@@ -88,6 +90,12 @@ static inline bool nfs4_slot_tbl_draining(struct nfs4_slot_table *tbl)
88 return !!test_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state); 90 return !!test_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state);
89} 91}
90 92
93static inline bool nfs4_test_locked_slot(const struct nfs4_slot_table *tbl,
94 u32 slotid)
95{
96 return !!test_bit(slotid, tbl->used_slots);
97}
98
91#if defined(CONFIG_NFS_V4_1) 99#if defined(CONFIG_NFS_V4_1)
92extern void nfs41_set_target_slotid(struct nfs4_slot_table *tbl, 100extern void nfs41_set_target_slotid(struct nfs4_slot_table *tbl,
93 u32 target_highest_slotid); 101 u32 target_highest_slotid);