Date: Mon, 21 May 2018 20:54:54 +0000 (UTC) From: Rick Macklem <rmacklem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r333996 - projects/pnfs-planb-server/sys/fs/nfsserver Message-ID: <201805212054.w4LKsst0001775@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rmacklem Date: Mon May 21 20:54:54 2018 New Revision: 333996 URL: https://svnweb.freebsd.org/changeset/base/333996 Log: Revert r333993 since it turns out mtx_init() does want the "struct mtx" zeroed out. 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 20:35:16 2018 (r333995) +++ projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c Mon May 21 20:54:54 2018 (r333996) @@ -7523,7 +7523,8 @@ nfsrv_createdevids(struct nfsd_nfsd_args *args, NFSPRO if (nfsrv_layouthashsize < 100) nfsrv_layouthashsize = 100; nfslayouthash = mallocarray(nfsrv_layouthashsize, - sizeof(struct nfslayouthash), M_NFSDSESSION, M_WAITOK); + sizeof(struct nfslayouthash), M_NFSDSESSION, M_WAITOK | + M_ZERO); for (i = 0; i < nfsrv_layouthashsize; i++) { mtx_init(&nfslayouthash[i].mtx, "nfslm", NULL, MTX_DEF); TAILQ_INIT(&nfslayouthash[i].list);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805212054.w4LKsst0001775>