From owner-p4-projects@FreeBSD.ORG Mon Jul 23 13:44:12 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id BEC8C16A421; Mon, 23 Jul 2007 13:44:12 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55C4716A420 for ; Mon, 23 Jul 2007 13:44:12 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 473A813C481 for ; Mon, 23 Jul 2007 13:44:12 +0000 (UTC) (envelope-from rdivacky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6NDiCOS064735 for ; Mon, 23 Jul 2007 13:44:12 GMT (envelope-from rdivacky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6NDiCJa064732 for perforce@freebsd.org; Mon, 23 Jul 2007 13:44:12 GMT (envelope-from rdivacky@FreeBSD.org) Date: Mon, 23 Jul 2007 13:44:12 GMT Message-Id: <200707231344.l6NDiCJa064732@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rdivacky@FreeBSD.org using -f From: Roman Divacky To: Perforce Change Reviews Cc: Subject: PERFORCE change 123960 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2007 13:44:13 -0000 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; }