]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: nfs4_stateid_is_current should return 'true' for an invalid stateid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 5 Mar 2014 13:44:23 +0000 (08:44 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 5 Mar 2014 16:55:06 +0000 (11:55 -0500)
commit0566f09979b20e798054c1e230cfb7a5dcd1ffe2
treed5f22de8fec53058a624f308df1375973c264c79
parent0a01b15e64925a995ab74f8408de6f3831c74276
NFSv4: nfs4_stateid_is_current should return 'true' for an invalid stateid

When nfs4_set_rw_stateid() can fails by returning EIO to indicate that
the stateid is completely invalid, then it makes no sense to have it
trigger a retry of the READ or WRITE operation. Instead, we should just
have it fall through and attempt a recovery.

This fixes an infinite loop in which the client keeps replaying the same
bad stateid back to the server.

Reported-by: Andy Adamson <andros@netapp.com>
Link: http://lkml.kernel.org/r/1393954269-3974-1-git-send-email-andros@netapp.com
Cc: stable@vger.kernel.org # 3.10+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c