diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-06-27 17:40:50 -0400 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2017-06-27 22:26:23 -0400 |
| commit | 2e31b4cb895ae78db31dffb860cd255d86c6561c (patch) | |
| tree | 7152005780458fa4f1927e754bc3d97a48025125 /fs | |
| parent | d9f2950006f110f54444a10442752372ee568289 (diff) | |
NFSv4.1: nfs4_callback_free_slot() cannot call nfs4_slot_tbl_drain_complete()
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 <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/nfs/callback_xdr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c index c14758e08d73..390ac9c39c59 100644 --- a/fs/nfs/callback_xdr.c +++ b/fs/nfs/callback_xdr.c | |||
| @@ -753,7 +753,6 @@ static void nfs4_callback_free_slot(struct nfs4_session *session, | |||
| 753 | * A single slot, so highest used slotid is either 0 or -1 | 753 | * A single slot, so highest used slotid is either 0 or -1 |
| 754 | */ | 754 | */ |
| 755 | nfs4_free_slot(tbl, slot); | 755 | nfs4_free_slot(tbl, slot); |
| 756 | nfs4_slot_tbl_drain_complete(tbl); | ||
| 757 | spin_unlock(&tbl->slot_tbl_lock); | 756 | spin_unlock(&tbl->slot_tbl_lock); |
| 758 | } | 757 | } |
| 759 | 758 | ||
