svn commit: r243745 - head/sys/security/audit
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sat Dec 1 08:51:40 UTC 2012
Author: pjd
Date: Sat Dec 1 08:51:40 2012
New Revision: 243745
URL: http://svnweb.freebsd.org/changeset/base/243745
Log:
IFp4 @219811:
VFS is now fully MPSAFE, fix compilation.
Modified:
head/sys/security/audit/audit_bsm_klib.c
Modified: head/sys/security/audit/audit_bsm_klib.c
==============================================================================
--- head/sys/security/audit/audit_bsm_klib.c Sat Dec 1 05:07:49 2012 (r243744)
+++ head/sys/security/audit/audit_bsm_klib.c Sat Dec 1 08:51:40 2012 (r243745)
@@ -468,7 +468,7 @@ audit_canon_path(struct thread *td, int
char *rbuf, *fbuf, *copy;
struct filedesc *fdp;
struct sbuf sbf;
- int error, needslash, vfslocked;
+ int error, needslash;
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "%s: at %s:%d",
__func__, __FILE__, __LINE__);
@@ -504,9 +504,7 @@ audit_canon_path(struct thread *td, int
return;
}
vhold(cvnp);
- vfslocked = VFS_LOCK_GIANT(cvnp->v_mount);
vrele(cvnp);
- VFS_UNLOCK_GIANT(vfslocked);
}
needslash = (fdp->fd_rdir != cvnp);
} else {
More information about the svn-src-head
mailing list