Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2007 13:44:12 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123960 for review
Message-ID:  <200707231344.l6NDiCJa064732@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123960

Change 123960 by rdivacky@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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707231344.l6NDiCJa064732>