Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Jan 2009 12:17:37 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r186946 - user/luigi/geom_sched/sys/geom
Message-ID:  <200901091217.n09CHbY7056539@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Fri Jan  9 12:17:37 2009
New Revision: 186946
URL: http://svn.freebsd.org/changeset/base/186946

Log:
  simplify the tagging

Modified:
  user/luigi/geom_sched/sys/geom/geom_io.c

Modified: user/luigi/geom_sched/sys/geom/geom_io.c
==============================================================================
--- user/luigi/geom_sched/sys/geom/geom_io.c	Fri Jan  9 11:48:53 2009	(r186945)
+++ user/luigi/geom_sched/sys/geom/geom_io.c	Fri Jan  9 12:17:37 2009	(r186946)
@@ -377,13 +377,19 @@ g_io_request(struct bio *bp, struct g_co
 	 * which should be unused in this particular entry (at least
 	 * with the code in 7.1/8.0).
 	 */
+	{
+		struct bio *top = bp;
+		while (top->bio_parent)
+			top = top->bio_parent;
+		if (top->bio_caller1 == NULL)
+			top->bio_caller1 = (void *)curthread->td_tid;
+	}
+#if 0
 {
 	struct bio *top = bp;
 	static int good = 0, req = 0;
 	static int last = 0;
 
-	while (top->bio_parent)
-		top = top->bio_parent;
 	req++;
 	if (top->bio_caller1 == NULL) {
 		top->bio_caller1 = (void *)curthread->td_tid;
@@ -397,6 +403,7 @@ g_io_request(struct bio *bp, struct g_co
 	}
 }
 #endif
+#endif
 
 	KASSERT(!(bp->bio_flags & BIO_ONQUEUE),
 	    ("Bio already on queue bp=%p", bp));



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