projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1090c3b
)
NFSv4.1/pNFS: pnfs_mark_matching_lsegs_return must notify of layout return
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Thu, 27 Aug 2015 23:17:33 +0000
(19:17 -0400)
committer
Trond Myklebust
<trond.myklebust@primarydata.com>
Thu, 27 Aug 2015 23:17:33 +0000
(19:17 -0400)
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
patch
|
blob
|
history
diff --git
a/fs/nfs/pnfs.c
b/fs/nfs/pnfs.c
index 914c1daf08dfe32c418caf9f0cfdcf1f9e774c23..4eec540de9ea06bd95f6c6f0c9395c1e59214823 100644
(file)
--- a/
fs/nfs/pnfs.c
+++ b/
fs/nfs/pnfs.c
@@
-1717,6
+1717,8
@@
pnfs_mark_matching_lsegs_return(struct pnfs_layout_hdr *lo,
lseg->pls_range.length);
set_bit(NFS_LSEG_LAYOUTRETURN, &lseg->pls_flags);
mark_lseg_invalid(lseg, tmp_list);
+ set_bit(NFS_LAYOUT_RETURN_BEFORE_CLOSE,
+ &lo->plh_flags);
}
}