summaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback_proc.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2012-11-20 15:16:30 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-12-06 00:30:37 +0100
commitce008c4bb9766bc7eeb02e8299c8baadc25da90b (patch)
treeb628ebf967388d2b7c76592dfde451516def7b36 /fs/nfs/callback_proc.c
parentda0507b7c95ccd4d9c86394eef42fe076032af30 (diff)
downloadlinux-ce008c4bb9766bc7eeb02e8299c8baadc25da90b.tar.bz2
NFSv4.1: Fix nfs4_callback_recallslot to work with dynamic slot allocation
Ensure that the NFSv4.1 CB_RECALL_SLOT callback updates the slot table target max slotid safely. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/callback_proc.c')
-rw-r--r--fs/nfs/callback_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/callback_proc.c b/fs/nfs/callback_proc.c
index 0ef047b7d28d..15b9879d6fbb 100644
--- a/fs/nfs/callback_proc.c
+++ b/fs/nfs/callback_proc.c
@@ -576,7 +576,7 @@ __be32 nfs4_callback_recallslot(struct cb_recallslotargs *args, void *dummy,
if (args->crsa_target_max_slots == fc_tbl->max_slots)
goto out;
- fc_tbl->target_highest_slotid = args->crsa_target_max_slots;
+ nfs41_set_target_slotid(fc_tbl, args->crsa_target_max_slots);
nfs41_handle_recall_slot(cps->clp);
out:
dprintk("%s: exit with status = %d\n", __func__, ntohl(status));