diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-06-09 12:50:50 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-06-09 12:59:55 -0400 |
commit | 995891006ccbb73c0c9c3923cf9d25c4d07ec16b (patch) | |
tree | 998c33853568106ab4fac63339c0d37d94e0ed7a | |
parent | fc40724fc6731d90cc7fb6d62d66135f85a33dd2 (diff) |
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 <trond.myklebust@hammerspace.com>
-rw-r--r-- | fs/nfs/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index e39f59b5e6d2..c5c5d6c9af25 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c | |||
@@ -780,7 +780,7 @@ static int nfs41_sequence_process(struct rpc_task *task, | |||
780 | * The slot id we used was probably retired. Try again | 780 | * The slot id we used was probably retired. Try again |
781 | * using a different slot id. | 781 | * using a different slot id. |
782 | */ | 782 | */ |
783 | if (slot->seq_nr < slot->table->target_highest_slotid) | 783 | if (slot->slot_nr < slot->table->target_highest_slotid) |
784 | goto session_recover; | 784 | goto session_recover; |
785 | goto retry_nowait; | 785 | goto retry_nowait; |
786 | case -NFS4ERR_SEQ_MISORDERED: | 786 | case -NFS4ERR_SEQ_MISORDERED: |