summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-09 09:58:36 +0000
committerphk <phk@FreeBSD.org>2003-03-09 09:58:36 +0000
commitb00bfcca9b33ec7123fb95c16e85a63ad4045151 (patch)
treeb0afdb2ccd282bf54c2089109bb55c826d35b1cd /sys/geom
parentfb582643d26e5e235240ea89aacc4bec8c50a926 (diff)
downloadFreeBSD-src-b00bfcca9b33ec7123fb95c16e85a63ad4045151.zip
FreeBSD-src-b00bfcca9b33ec7123fb95c16e85a63ad4045151.tar.gz
Add u_int nstart, nend counters to consumer and providers so we will not
have to examine the stats structure to tell if we have outstanding I/O requests. Making them u_int improves the chance of atomic updates to them, but risks roll-over. Since the only interesting property is if they are equal or not, this is not an issue.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/geom.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/geom.h b/sys/geom/geom.h
index 9047f071..6aba180 100644
--- a/sys/geom/geom.h
+++ b/sys/geom/geom.h
@@ -152,6 +152,7 @@ struct g_consumer {
struct g_event *event;
int spoiled;
struct g_stat *stat;
+ u_int nstart, nend;
};
/*
@@ -173,6 +174,7 @@ struct g_provider {
u_int stripesize;
u_int stripeoffset;
struct g_stat *stat;
+ u_int nstart, nend;
u_int flags;
#define G_PF_CANDELETE 0x1
};
OpenPOWER on IntegriCloud