svn commit: r321731 - projects/pnfs-planb-server-stable11/sys/fs/nfsclient
Rick Macklem
rmacklem at FreeBSD.org
Sun Jul 30 21:57:20 UTC 2017
Author: rmacklem
Date: Sun Jul 30 21:57:19 2017
New Revision: 321731
URL: https://svnweb.freebsd.org/changeset/base/321731
Log:
Manually merge in r321675, so I don't need to wait for the MFC to stable/11.
Modified:
projects/pnfs-planb-server-stable11/sys/fs/nfsclient/nfs_clrpcops.c
Modified: projects/pnfs-planb-server-stable11/sys/fs/nfsclient/nfs_clrpcops.c
==============================================================================
--- projects/pnfs-planb-server-stable11/sys/fs/nfsclient/nfs_clrpcops.c Sun Jul 30 21:52:22 2017 (r321730)
+++ projects/pnfs-planb-server-stable11/sys/fs/nfsclient/nfs_clrpcops.c Sun Jul 30 21:57:19 2017 (r321731)
@@ -6633,9 +6633,14 @@ nfsrpc_getcreatelayout(vnode_t dvp, char *name, int na
NFSCL_DEBUG(4, "aft nfsrpc_createlayoutrpc laystat=%d err=%d\n",
laystat, error);
lyp = NULL;
- nfhp = *nfhpp;
- laystat = nfsrpc_layoutgetres(nmp, dvp, nfhp->nfh_fh, nfhp->nfh_len,
- &stateid, retonclose, NULL, &lyp, &flh, laystat, NULL, cred, p);
+ if (laystat == 0) {
+ nfhp = *nfhpp;
+ laystat = nfsrpc_layoutgetres(nmp, dvp, nfhp->nfh_fh,
+ nfhp->nfh_len, &stateid, retonclose, NULL, &lyp, &flh,
+ laystat, NULL, cred, p);
+ } else
+ laystat = nfsrpc_layoutgetres(nmp, dvp, NULL, 0, &stateid,
+ retonclose, NULL, &lyp, &flh, laystat, NULL, cred, p);
if (laystat == 0)
nfscl_rellayout(lyp, 0);
return (error);
More information about the svn-src-projects
mailing list