Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

NFSv4.1 set highest_used_slotid to NFS4_NO_SLOT

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

authored by

Andy Adamson and committed by
Trond Myklebust
b6bf6e7d d7c32675

+1 -1
+1 -1
fs/nfs/nfs4state.c
··· 212 212 static int nfs4_wait_on_slot_tbl(struct nfs4_slot_table *tbl) 213 213 { 214 214 spin_lock(&tbl->slot_tbl_lock); 215 - if (tbl->highest_used_slotid != -1) { 215 + if (tbl->highest_used_slotid != NFS4_NO_SLOT) { 216 216 INIT_COMPLETION(tbl->complete); 217 217 spin_unlock(&tbl->slot_tbl_lock); 218 218 return wait_for_completion_interruptible(&tbl->complete);