svn commit: r276880 - stable/10/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Fri Jan 9 07:32:44 UTC 2015
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;
More information about the svn-src-stable
mailing list