From: Trond Myklebust Date: Sat, 9 Jun 2018 16:50:50 +0000 (-0400) Subject: NFSv4: Fix a typo in nfs41_sequence_process X-Git-Tag: v4.19~741^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=995891006ccbb73c0c9c3923cf9d25c4d07ec16b;p=platform%2Fkernel%2Flinux-rpi3.git NFSv4: Fix a typo in nfs41_sequence_process 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 --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e39f59b..c5c5d6c 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -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: