pnfs: don't check sequence on new stateids in layoutget
authorChristoph Hellwig <hch@lst.de>
Thu, 21 Aug 2014 16:09:20 +0000 (11:09 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 10 Sep 2014 19:47:01 +0000 (12:47 -0700)
commit362f74745c15fb9acad577ab8e1342ee5313a2a5
tree309e11b87198db5e8f0698be50749967dcfbca83
parent1013df61150e56f775ccacdaaeee66042f1e6eb6
pnfs: don't check sequence on new stateids in layoutget

When layoutget returns an entirely new layout stateid it should not
check the generation counter as the new stateid will start with a new
counter entirely unrelated to old one.

The current behavior causes constant layoutget failures against a block
server which allocates a new stateid after an recall that removed all
outstanding layouts.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c