Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Sep 2006 12:32:25 -0700 (PDT)
From:      "R. B. Riddick" <arne_woerner@yahoo.com>
To:        Ulf Lilleengen <lulf@stud.ntnu.no>
Cc:        freebsd-geom@freebsd.org
Subject:   Re: gvinum raid5 in production
Message-ID:  <20060912193225.75860.qmail@web30310.mail.mud.yahoo.com>
In-Reply-To: <20060912191744.GA28858@stud.ntnu.no>

next in thread | previous in thread | raw e-mail | index | archive | help
--- Ulf Lilleengen <lulf@stud.ntnu.no> wrote:
> > As far as I understood GEOM it does not like to sleep in g_up or g_down
> > threads... So we cannot use M_WAITOK in gv_down()...
> What do you mean gv_down()? Gvinum does not use g_up or g_down as far as i
> can tell?
> 
Ohoh... Tubby "typo"...

"gv_down" is wrong... I meant "gv_drive_done()"

As far as I understood GEOM it work as follows:
1. A geom class provides a drive and several functions, that r needed to
operate that drive...
2. Thread g_down hands down a new read/write/... request to an instance of a
geom class by using those functions (often called: ..._start())
3. Thread g_up hands up a completed/aborted request to the caller (a geom or
so) by using those functions (often called: ..._done())

It is a little bit like "function overloading" in OO...

-Arne

---
Arne likes Teletubbies...

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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