Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2012 08:51:40 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243745 - head/sys/security/audit
Message-ID:  <201212010851.qB18pea1067077@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212010851.qB18pea1067077>