Skip to content

Commit

Permalink
NFSv4.1: nfs4_callback_free_slot() cannot call nfs4_slot_tbl_drain_co…
Browse files Browse the repository at this point in the history
…mplete()

The current code works only for the case where we have exactly one slot,
which is no longer true.
nfs4_free_slot() will automatically declare the callback channel to be
drained when all slots have been returned.

Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
trondmypd committed Jun 28, 2017
1 parent d9f2950 commit 2e31b4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/nfs/callback_xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,6 @@ static void nfs4_callback_free_slot(struct nfs4_session *session,
* A single slot, so highest used slotid is either 0 or -1
*/
nfs4_free_slot(tbl, slot);
nfs4_slot_tbl_drain_complete(tbl);
spin_unlock(&tbl->slot_tbl_lock);
}

Expand Down

0 comments on commit 2e31b4c

Please sign in to comment.