1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

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.
This commit is contained in:
Poul-Henning Kamp 2003-03-09 09:58:36 +00:00
parent c1c8575100
commit 0e082fcca2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112026

View File

@ -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
};