]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
NFSv4: Fix a typo in nfs41_sequence_process
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 9 Jun 2018 16:50:50 +0000 (12:50 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 9 Jun 2018 16:59:55 +0000 (12:59 -0400)
We want to compare the slot_id to the highest slot number advertised by the
server.

Fixes: 3be0f80b5fe9c ("NFSv4.1: Fix up replays of interrupted requests")
Cc: stable@vger.kernel.org # 4.15+
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c

index e39f59b5e6d2738990baf7339316f728c3141853..c5c5d6c9af25e0e5b05d038164372248e3ef5d94 100644 (file)
@@ -780,7 +780,7 @@ static int nfs41_sequence_process(struct rpc_task *task,
                 * The slot id we used was probably retired. Try again
                 * using a different slot id.
                 */
-               if (slot->seq_nr < slot->table->target_highest_slotid)
+               if (slot->slot_nr < slot->table->target_highest_slotid)
                        goto session_recover;
                goto retry_nowait;
        case -NFS4ERR_SEQ_MISORDERED: