Remove remaining Giant acquisition around vn_fullpath1. This was missed
in r1.106 and has not been required for some years now. Reviewed by: jeff MFC After: 1 week
This commit is contained in:
parent
f24c80e2ef
commit
e6d64a0f15
@ -689,12 +689,10 @@ kern___getcwd(struct thread *td, u_char *buf, enum uio_seg bufseg, u_int buflen)
|
||||
|
||||
tmpbuf = malloc(buflen, M_TEMP, M_WAITOK);
|
||||
fdp = td->td_proc->p_fd;
|
||||
mtx_lock(&Giant);
|
||||
FILEDESC_SLOCK(fdp);
|
||||
error = vn_fullpath1(td, fdp->fd_cdir, fdp->fd_rdir, tmpbuf,
|
||||
&bp, buflen);
|
||||
FILEDESC_SUNLOCK(fdp);
|
||||
mtx_unlock(&Giant);
|
||||
|
||||
if (!error) {
|
||||
if (bufseg == UIO_SYSSPACE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user