svn commit: r333953 - projects/pnfs-planb-server/sys/fs/nfsserver
Rick Macklem
rmacklem at FreeBSD.org
Mon May 21 01:07:00 UTC 2018
Author: rmacklem
Date: Mon May 21 01:06:59 2018
New Revision: 333953
URL: https://svnweb.freebsd.org/changeset/base/333953
Log:
Add support for a "reclaim" LayoutReturn.
Modified:
projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c
Modified: projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c
==============================================================================
--- projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c Mon May 21 01:05:32 2018 (r333952)
+++ projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c Mon May 21 01:06:59 2018 (r333953)
@@ -6666,6 +6666,13 @@ nfsrv_layoutreturn(struct nfsrv_descript *nd, vnode_t
" failed=%d\n", error);
}
if (error == 0) {
+ if (reclaim == newnfs_true) {
+ error = nfsrv_checkgrace(NULL, NULL,
+ NFSLCK_RECLAIM);
+ if (error != NFSERR_NOGRACE)
+ error = 0;
+ return (error);
+ }
lhyp = NFSLAYOUTHASH(&fh);
NFSDRECALLLOCK();
NFSLOCKLAYOUT(lhyp);
More information about the svn-src-projects
mailing list