From de90b09a791bc134afe2fbf8236e4482343122a7 Mon Sep 17 00:00:00 2001 From: Dmitry Chagin Date: Fri, 2 Jan 2015 18:36:08 +0000 Subject: [PATCH] Remove Giant from linux_getcwd() due to VFS is MPSAFE now. Discussed with: kib MFC after: 1 week --- sys/compat/linux/linux_getcwd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/compat/linux/linux_getcwd.c b/sys/compat/linux/linux_getcwd.c index cad5a22efd3..04f92e886ef 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;