Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2007 14:48:16 GMT
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 120385 for review
Message-ID:  <200705251448.l4PEmG6q021535@repoman.freebsd.org>

index | next in thread | raw e-mail

http://perforce.freebsd.org/chv.cgi?CH=120385

Change 120385 by lulf@lulf_carrot on 2007/05/25 14:48:02

	- Make sure the lock is not held.

Affected files ...

.. //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_plex.c#8 edit

Differences ...

==== //depot/projects/soc2007/lulf/gvinum_fixup/sys/geom/vinum/geom_vinum_plex.c#8 (text+ko) ====

@@ -481,6 +481,8 @@
 
 	KASSERT(p != NULL, ("gv_issue_next_parity_bio: NULL p"));
 
+	/* Make sure we don't have the lock. */
+	g_topology_assert_not();
 	g_topology_lock();
 	error = gv_access(p->vol_sc->provider, 1, 1, 0);
 	if (error) {
@@ -534,6 +536,8 @@
 		g_free(bp->bio_data);
 	g_destroy_bio(bp);
 
+	/* Make sure we don't have the lock. */
+	g_topology_assert_not();
 	g_topology_lock();
 	gv_access(p->vol_sc->provider, -1, -1, 0);
 	g_topology_unlock();


help

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