Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2000 15:49:21 -0800
From:      Julian Elischer <julian@elischer.org>
To:        Chuck Paterson <cp@twistedbit.com>
Cc:        smp@FreeBSD.ORG
Subject:   Re: Netgraph locking primatives. take 1.
Message-ID:  <3A3EA281.7330E8CF@elischer.org>
References:  <200012182257.eBIMvgP24201@berserker.bsdi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Paterson wrote:
> 
> }Chuck Paterson wrote:
> }>
> }> Julian
> }>         Is there some other mechanism to insure that the code
> }> which knows about the queue on which the packet is queued  doesn't
> }> go away while the packet is on queued? I thought this was
> }> part of what was being solved, but may just not understand.
> }>
> }> Chuck
> }
> }Sorry I don;t quite understand  the question..
> }
> 
>         You talked about various nodes before, such as node X, and
> node Y. Presumably node X and the code that knows about it, and
> its queues could go away totally. I thought, perhaps wrongly, that
> this mechanism was going to be used to solve this problem
> also.

ah
yes..
the node removal message is obviously a writer.
part of it's job is to drain and remove the queue.
(the message is sent to the node but it's handled by the framework)

teh module that supplies the code that is running the node cannot be
unloaded until thre are no more nodes of that type, and
the node cannot be shutdown until it has exclusive access to the node
via a write lock, (but is running code in teh framework rather
than code from the module, so we know at that stage that no processor
is running any code from teh module, and we can remove it..

> 
> }BTW BSDi is rejecting my mail to you as spam and I can't figure out why...
> }Just as well you are on the lists.
> }(it goes via my ISPs mail server, not direct from the dialup)
> }
> 
>         As far as I can tell the mail filters we (BSDi) use just suck
> wind.
> 
> }
> }--
> }      __--_|\  Julian Elischer
> }     /       \ julian@elischer.org
> }    (   OZ    ) World tour 2000
> }---> X_.---._/  presently in:  Budapest
> }            v
> }
> }
> 
> Chuck

-- 
      __--_|\  Julian Elischer
     /       \ julian@elischer.org
    (   OZ    ) World tour 2000
---> X_.---._/  presently in:  Budapest
            v


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-smp" in the body of the message




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