]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: Allow revoked stateids to skip the call to TEST_STATEID
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 22 Sep 2016 17:39:02 +0000 (13:39 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 27 Sep 2016 18:34:01 +0000 (14:34 -0400)
commitcd3c5fe65224f7561e786b2bde1569ab9818bb07
tree6e42173fadeab24018c85aaa6c1ffc13973c140a
parenta6b52948bbe901089c6b76f0c90d877f5d06a4f3
NFSv4.1: Allow revoked stateids to skip the call to TEST_STATEID

In some cases (e.g. when the SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED sequence
flag is set) we may already know that the stateid was revoked and that the
only valid operation we can call is FREE_STATEID. In those cases, allow
the stateid to carry the information in the type field, so that we skip
the redundant call to TEST_STATEID.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c
include/linux/nfs4.h