mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove Giant from linux_getcwd() due to VFS is MPSAFE now.
Discussed with: kib MFC after: 1 week
This commit is contained in:
parent
a614ff4d01
commit
de90b09a79
1 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue