svn commit: r276550 - head/sys/compat/linux

Dmitry Chagin dchagin at FreeBSD.org
Fri Jan 2 18:36:09 UTC 2015


Author: dchagin
Date: Fri Jan  2 18:36:08 2015
New Revision: 276550
URL: https://svnweb.freebsd.org/changeset/base/276550

Log:
  Remove Giant from linux_getcwd() due to VFS is MPSAFE now.
  
  Discussed with:	kib
  MFC after:	1 week

Modified:
  head/sys/compat/linux/linux_getcwd.c

Modified: head/sys/compat/linux/linux_getcwd.c
==============================================================================
--- head/sys/compat/linux/linux_getcwd.c	Fri Jan  2 18:32:53 2015	(r276549)
+++ head/sys/compat/linux/linux_getcwd.c	Fri Jan  2 18:36:08 2015	(r276550)
@@ -450,11 +450,8 @@ linux_getcwd(struct thread *td, struct l
 		 * limit it to N/2 vnodes for an N byte buffer.
 		 */
 
-		mtx_lock(&Giant);
 		error = linux_getcwd_common (td->td_proc->p_fd->fd_cdir, NULL,
 		    &bp, path, len/2, GETCWD_CHECK_ACCESS, td);
-		mtx_unlock(&Giant);
-
 		if (error)
 			goto out;
 		lenused = bend - bp;


More information about the svn-src-head mailing list