From owner-p4-projects@FreeBSD.ORG Thu Sep 15 20:55:47 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7049C16A421; Thu, 15 Sep 2005 20:55:47 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 468F716A41F for ; Thu, 15 Sep 2005 20:55:47 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CBFB43D45 for ; Thu, 15 Sep 2005 20:55:47 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8FKtkwe022054 for ; Thu, 15 Sep 2005 20:55:46 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8FKtkqA022051 for perforce@freebsd.org; Thu, 15 Sep 2005 20:55:46 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 15 Sep 2005 20:55:46 GMT Message-Id: <200509152055.j8FKtkqA022051@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 83704 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: Thu, 15 Sep 2005 20:55:48 -0000 http://perforce.freebsd.org/chv.cgi?CH=83704 Change 83704 by rwatson@rwatson_peppercorn on 2005/09/15 20:55:46 Assert vnode lock in fifo_close(), as it is relied upon to synchronize the reference counts in struct fifoinfo. Affected files ... .. //depot/projects/netsmp/src/sys/fs/fifofs/fifo_vnops.c#15 edit Differences ... ==== //depot/projects/netsmp/src/sys/fs/fifofs/fifo_vnops.c#15 (text+ko) ==== @@ -418,6 +418,7 @@ struct vnode *vp = ap->a_vp; struct fifoinfo *fip = vp->v_fifoinfo; + ASSERT_VOP_LOCKED(vp, "fifo_close"); if (ap->a_fflag & FREAD) { fip->fi_readers--; if (fip->fi_readers == 0)