]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac53e103d49b657ffd0cde029787060a99be4651
treeaf032e776b004aa26ad48c0e91123253e63b7e37
parent7a728099329dea8db81c44ec41cecbf265baaa76
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