Date: Tue, 3 Jul 2007 10:39:17 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 122761 for review Message-ID: <200707031039.l63AdHRk028721@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122761 Change 122761 by rdivacky@rdivacky_witten on 2007/07/03 10:38:33 Actually LOCK Giant and not just check for this beeing needed and do this before VOP_LOCK. Suggested by: kib Affected files ... .. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_exec.c#11 edit Differences ... ==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_exec.c#11 (text+ko) ==== @@ -394,8 +394,8 @@ error = fgetvp(td, args->fd, &binvp); if (error) goto exec_fail; + vfslocked = VFS_LOCK_GIANT(binvp->v_mount); VOP_LOCK(binvp, LK_EXCLUSIVE, td); - vfslocked = VFS_NEEDSGIANT(binvp->v_mount); imgp->vp = binvp; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707031039.l63AdHRk028721>