Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2005 20:55:46 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 83704 for review
Message-ID:  <200509152055.j8FKtkqA022051@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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