Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2015 07:32:43 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r276880 - stable/10/sys/compat/linux
Message-ID:  <201501090732.t097WhBZ097530@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dchagin
Date: Fri Jan  9 07:32:43 2015
New Revision: 276880
URL: https://svnweb.freebsd.org/changeset/base/276880

Log:
  MFC r276550:
  Remove Giant from linux_getcwd() due to VFS is MPSAFE now.

Modified:
  stable/10/sys/compat/linux/linux_getcwd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/compat/linux/linux_getcwd.c
==============================================================================
--- stable/10/sys/compat/linux/linux_getcwd.c	Fri Jan  9 06:39:07 2015	(r276879)
+++ stable/10/sys/compat/linux/linux_getcwd.c	Fri Jan  9 07:32:43 2015	(r276880)
@@ -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;



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