pnfs: only tear down lsegs that precede seqid in LAYOUTRETURN args
authorJeff Layton <jlayton@poochiereds.net>
Tue, 17 May 2016 16:28:42 +0000 (12:28 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:48:10 +0000 (15:48 -0400)
commit6d597e1750126a2c6fd99e4b2cc176955bb9972e
treeaf032e776b004aa26ad48c0e91123253e63b7e37
parent3982a6a2d0e64441c938f4e7f93985aff37d8fb3
pnfs: only tear down lsegs that precede seqid in LAYOUTRETURN args

LAYOUTRETURN is "special" in that servers and clients are expected to
work with old stateids. When the client sends a LAYOUTRETURN with an old
stateid in it then the server is expected to only tear down layout
segments that were present when that seqid was current. Ensure that the
client handles its accounting accordingly.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/callback_proc.c
fs/nfs/nfs42proc.c
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h