diff options
| author | Mitchell Horne <mhorne@FreeBSD.org> | 2021-11-25 16:01:11 +0000 |
|---|---|---|
| committer | Mitchell Horne <mhorne@FreeBSD.org> | 2021-11-30 15:15:56 +0000 |
| commit | 0d2224733e970aaa67a4e1af7b340044adda92f6 (patch) | |
| tree | 69dcaf4901a34d3358a7eebef3529661fa0a5e13 /sys/geom | |
| parent | b02908b051c897117ebbc3dcb55848383b17c435 (diff) | |
Diffstat (limited to 'sys/geom')
| -rw-r--r-- | sys/geom/geom_io.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index f32a3dc52f93..ce7f6c867388 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -559,7 +559,6 @@ g_io_request(struct bio *bp, struct g_consumer *cp) atomic_add_int(&cp->nstart, 1); #endif -#ifdef GET_STACK_USAGE direct = (cp->flags & G_CF_DIRECT_SEND) != 0 && (pp->flags & G_PF_DIRECT_RECEIVE) != 0 && !g_is_geom_thread(curthread) && @@ -573,9 +572,6 @@ g_io_request(struct bio *bp, struct g_consumer *cp) if (su * 2 > st) direct = 0; } -#else - direct = 0; -#endif if (direct) { error = g_io_check(bp); @@ -655,7 +651,6 @@ g_io_deliver(struct bio *bp, int error) bp->bio_bcount = bp->bio_length; bp->bio_resid = bp->bio_bcount - bp->bio_completed; -#ifdef GET_STACK_USAGE direct = (pp->flags & G_PF_DIRECT_SEND) && (cp->flags & G_CF_DIRECT_RECEIVE) && !g_is_geom_thread(curthread); @@ -666,9 +661,6 @@ g_io_deliver(struct bio *bp, int error) if (su * 2 > st) direct = 0; } -#else - direct = 0; -#endif /* * The statistics collection is lockless, as such, but we |
