PERFORCE change 123960 for review
Roman Divacky
rdivacky at FreeBSD.org
Mon Jul 23 13:44:13 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=123960
Change 123960 by rdivacky at rdivacky_witten on 2007/07/23 13:44:10
Deal with recycled vnodes by switching from VOP_LOCK to vn_lock and
supplying LK_RETRY flag too.
Suggested by: kib
Affected files ...
.. //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_exec.c#14 edit
Differences ...
==== //depot/projects/soc2007/rdivacky/linux_at/sys/kern/kern_exec.c#14 (text+ko) ====
@@ -395,7 +395,7 @@
if (error)
goto exec_fail;
vfslocked = VFS_LOCK_GIANT(binvp->v_mount);
- VOP_LOCK(binvp, LK_EXCLUSIVE, td);
+ vn_lock(binvp, LK_EXCLUSIVE | LK_RETRY, td);
imgp->vp = binvp;
}
More information about the p4-projects
mailing list