Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2010 15:40:09 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Lev Serebryakov <lev@serebryakov.spb.ru>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: One more question: is here any way to know is consumer busy or not? 
Message-ID:  <56017.1291995609@critter.freebsd.dk>
In-Reply-To: Your message of "Fri, 10 Dec 2010 18:33:22 %2B0300." <1136849868.20101210183322@serebryakov.spb.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <1136849868.20101210183322@serebryakov.spb.ru>, Lev Serebryakov writ
es:
>Hello, Freebsd-geom.
>
>  The  same  idea about pre-reading in case of providers with multiple
>  consumers   (BTW,   I   think  that terminology here is swapped):

The provider offers access to a disk(-like) device, which the consumer
can use.

>  looks  good  to  issue  pre-read only if target consumer is idle. Is
>  here  any  way  to  determine  that? 

you can look at the nstart and nend elements of the g_consumer structure
to tell how many outstanding requests there are on that consumer.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



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