Lines Matching refs:tbl
222 static void nfs4_end_drain_slot_table(struct nfs4_slot_table *tbl) in nfs4_end_drain_slot_table() argument
224 if (test_and_clear_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) { in nfs4_end_drain_slot_table()
225 spin_lock(&tbl->slot_tbl_lock); in nfs4_end_drain_slot_table()
226 nfs41_wake_slot_table(tbl); in nfs4_end_drain_slot_table()
227 spin_unlock(&tbl->slot_tbl_lock); in nfs4_end_drain_slot_table()
246 static int nfs4_drain_slot_tbl(struct nfs4_slot_table *tbl) in nfs4_drain_slot_tbl() argument
248 set_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state); in nfs4_drain_slot_tbl()
249 spin_lock(&tbl->slot_tbl_lock); in nfs4_drain_slot_tbl()
250 if (tbl->highest_used_slotid != NFS4_NO_SLOT) { in nfs4_drain_slot_tbl()
251 reinit_completion(&tbl->complete); in nfs4_drain_slot_tbl()
252 spin_unlock(&tbl->slot_tbl_lock); in nfs4_drain_slot_tbl()
253 return wait_for_completion_interruptible(&tbl->complete); in nfs4_drain_slot_tbl()
255 spin_unlock(&tbl->slot_tbl_lock); in nfs4_drain_slot_tbl()