OSDN Git Service

NFSv4.x: Handle bad/dead sessions correctly in nfs41_sequence_process()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 13 Nov 2019 07:34:00 +0000 (08:34 +0100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 13 Nov 2019 15:37:17 +0000 (16:37 +0100)
commit5c441544f045e679afd6c3c6d9f7aaf5fa5f37b0
tree6487156cd7d6379a8a6be43a61591b81313087c3
parent634d811c619b0dbe16dc890a53d2c978e9d055d5
NFSv4.x: Handle bad/dead sessions correctly in nfs41_sequence_process()

If the server returns a bad or dead session error, the we don't want
to update the session slot number, but just immediately schedule
recovery and allow it to proceed.

We can/should then remove handling in other places

Fixes: 3453d5708b33 ("NFSv4.1: Avoid false retries when RPC calls are interrupted")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c