diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-01-09 07:32:43 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-01-09 07:32:43 +0000 |
commit | 1009c8aa89624237add7b8bca851e09b29347d8a (patch) | |
tree | 9034a39f6f2caa2dba07abda2b5f4856e45f35ba /sys/compat/linux/linux_getcwd.c | |
parent | 669637a75a3bfd00826673aad799f1b120cbcfff (diff) | |
download | FreeBSD-src-1009c8aa89624237add7b8bca851e09b29347d8a.zip FreeBSD-src-1009c8aa89624237add7b8bca851e09b29347d8a.tar.gz |
MFC r276550:
Remove Giant from linux_getcwd() due to VFS is MPSAFE now.
Diffstat (limited to 'sys/compat/linux/linux_getcwd.c')
-rw-r--r-- | sys/compat/linux/linux_getcwd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c index cad5a22..04f92e8 100644 --- a/sys/compat/linux/linux_getcwd.c +++ b/sys/compat/linux/linux_getcwd.c @@ -450,11 +450,8 @@ linux_getcwd(struct thread *td, struct linux_getcwd_args *args) * 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; |