Trond Myklebust f7db0b2838 pNFS: Fix LAYOUTGET handling of NFS4ERR_BAD_STATEID and NFS4ERR_EXPIRED
We want to recover the open stateid if there is no layout stateid
and/or the stateid argument matches an open stateid.
Otherwise throw out the existing layout and recover from scratch, as
the layout stateid is bad.

Fixes: 183d9e7b112aa ("pnfs: rework LAYOUTGET retry handling")
Cc: stable@vger.kernel.org # 4.7
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2016-07-19 16:23:23 -04:00
..
2016-06-24 12:01:00 -04:00
2016-06-24 12:01:00 -04:00
2015-04-23 15:16:14 -04:00
2012-07-30 19:06:41 -04:00
2015-02-03 11:06:34 -08:00
2016-03-31 00:30:15 -04:00
2016-05-17 15:47:55 -04:00
2015-04-23 15:16:14 -04:00
2015-04-23 15:16:14 -04:00
2016-05-17 15:48:06 -04:00
2016-05-17 15:47:55 -04:00
2016-05-26 10:33:33 -07:00
2016-05-17 15:47:55 -04:00
2012-07-30 19:06:52 -04:00
2016-05-09 11:39:45 -04:00
2016-05-17 15:47:55 -04:00
2016-06-24 12:01:00 -04:00
2016-05-09 11:39:45 -04:00