NFSv4.1: Allow the server to recall all but one slot
[firefly-linux-kernel-4.4.55.git] / fs / nfs / callback_proc.c
index ed0b446e2e381c6fd4a79e4db75443843e4a68af..a0546eca6f6bf3c4b9c7e961d23005064c33f3f4 100644 (file)
@@ -567,11 +567,6 @@ __be32 nfs4_callback_recallslot(struct cb_recallslotargs *args, void *dummy,
 
        fc_tbl = &cps->clp->cl_session->fc_slot_table;
 
-       status = htonl(NFS4ERR_BAD_HIGH_SLOT);
-       if (args->crsa_target_highest_slotid >= fc_tbl->max_slots ||
-           args->crsa_target_highest_slotid < 1)
-               goto out;
-
        status = htonl(NFS4_OK);
 
        nfs41_set_target_slotid(fc_tbl, args->crsa_target_highest_slotid);