svn commit: r201021 - in head/sys: dev/hwpmc sys

Kostik Belousov kostikbel at gmail.com
Sat Dec 26 20:44:29 UTC 2009


> +		freepath = NULL;
> +		pmc_getfilename(vp, &fullpath, &freepath);
> +		last_vp = vp;
> +		vrele(vp);
> +		vp = NULL;

You should do VFS_LOCK_GIANT/VFS_UNLOCK_GIANT around vrele(), since
vrele() may need to acquire vnode lock and inactivate the vnode.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20091226/b3010311/attachment.pgp


More information about the svn-src-head mailing list