NFSv4.1/pNFS: Add a helper to mark the layout as returned
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 16:48:14 +0000 (11:48 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 28 Dec 2015 19:33:04 +0000 (14:33 -0500)
commit0654cc726fc6eed6dca915fb65ba7975716ea080
tree367e0058259d17d89ffec6d02ea333aa4bb5485f
parentab7d763e477c5be33ac9cffc68e808bbd69371f7
NFSv4.1/pNFS: Add a helper to mark the layout as returned

This ensures that we don't reuse the stateid if a layout return or
implied layout return means that we've returned all layout segments

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/callback_proc.c
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h