]> 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)
commit09356ea4d710f8c5aff0b2d059a1f7c8df21c5de
tree6e42173fadeab24018c85aaa6c1ffc13973c140a
parent0d4612dcd1cb39814a8e4601ba0a8dc1d18ad734
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