svn commit: r186946 - user/luigi/geom_sched/sys/geom
Luigi Rizzo
luigi at FreeBSD.org
Fri Jan 9 04:17:39 PST 2009
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));
More information about the svn-src-user
mailing list