diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-03-05 08:44:23 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-23 21:38:17 -0700 |
commit | c8dd8fdf0bd8c858d30ba3889104e226e865cade (patch) | |
tree | 63ec25df247bc7579d0ee43c5e6cb05d313125d6 /drivers | |
parent | 40cb674a5a0cff49a46af150fb862229e545e908 (diff) | |
download | linux-3.10-c8dd8fdf0bd8c858d30ba3889104e226e865cade.tar.gz linux-3.10-c8dd8fdf0bd8c858d30ba3889104e226e865cade.tar.bz2 linux-3.10-c8dd8fdf0bd8c858d30ba3889104e226e865cade.zip |
NFSv4: nfs4_stateid_is_current should return 'true' for an invalid stateid
commit e1253be0ece1a95a02c7f5843194877471af8179 upstream.
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
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions