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:
Kris Kennaway 2007-11-22 21:26:25 +00:00
parent f24c80e2ef
commit e6d64a0f15

View File

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