Date: Thu, 14 Dec 2006 15:15:05 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 111696 for review Message-ID: <200612141515.kBEFF5Tu021701@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=111696 Change 111696 by jhb@jhb_mutex on 2006/12/14 15:14:23 Hold reference on the mountpoint across VFS_QUOTACTL(). Affected files ... .. //depot/projects/smpng/sys/kern/vfs_syscalls.c#119 edit Differences ... ==== //depot/projects/smpng/sys/kern/vfs_syscalls.c#119 (text+ko) ==== @@ -202,12 +202,14 @@ NDFREE(&nd, NDF_ONLY_PNBUF); error = vn_start_write(nd.ni_vp, &vmp, V_WAIT | PCATCH); mp = nd.ni_vp->v_mount; + vfs_ref(mp); vrele(nd.ni_vp); if (error) goto out; error = VFS_QUOTACTL(mp, uap->cmd, uap->uid, uap->arg, td); vn_finished_write(vmp); out: + vfs_rel(mp); VFS_UNLOCK_GIANT(vfslocked); return (error); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612141515.kBEFF5Tu021701>