Skip to content

Commit

Permalink
Remove Giant from linux_getcwd() due to VFS is MPSAFE now.
Browse files Browse the repository at this point in the history
Discussed with:	kib
MFC after:	1 week
  • Loading branch information
lemul committed Jan 2, 2015
1 parent a614ff4 commit de90b09
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sys/compat/linux/linux_getcwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de90b09

Please sign in to comment.