MFC r276550:

Remove Giant from linux_getcwd() due to VFS is MPSAFE now.
This commit is contained in:
dchagin 2015-01-09 07:32:43 +00:00
parent 669637a75a
commit 1009c8aa89

View File

@ -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;