]> git.baikalelectronics.ru Git - kernel.git/commit
pnfs: keep track of the return sequence number in pnfs_layout_hdr
authorJeff Layton <jlayton@poochiereds.net>
Tue, 17 May 2016 16:28:41 +0000 (12:28 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:48:10 +0000 (15:48 -0400)
commit7a728099329dea8db81c44ec41cecbf265baaa76
tree6aae542c9fc32ef470004d42107f18b7bc808f6c
parent07564be6c19776c196b1ce1b210c332fbe76f7c5
pnfs: keep track of the return sequence number in pnfs_layout_hdr

When we want to selectively do a LAYOUTRETURN, we need to specify a
stateid that represents most recent layout acquisition that is to be
returned.

When we mark a layout stateid to be returned, we update the return
sequence number in the layout header with that value, if it's newer
than the existing one. Then, when we go to do a LAYOUTRETURN on
layout header put, we overwrite the seqid in the stateid with the
saved one, and then zero it out.

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