NFSv4.1/pNFS: pnfs_mark_matching_lsegs_return must notify of layout return
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 27 Aug 2015 23:17:33 +0000 (19:17 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 27 Aug 2015 23:17:33 +0000 (19:17 -0400)
commit0bdb8fa6ecb4a356f26c6874db51b5488706e088
tree65b579349f1b2044cc174c4d514237c63027fa43
parent1090c3bf81ef12eb22383d4b6627d372ce5115d9
NFSv4.1/pNFS: pnfs_mark_matching_lsegs_return must notify of layout return

It's not sufficient to just mark the layout segment for layout return. We
also need to set the NFS_LAYOUT_RETURN_BEFORE_CLOSE flag in the layout header.

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