Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Dec 2000 06:55:32 -0800
From:      Julian Elischer <julian@elischer.org>
To:        brian@freebsd.org, archie@freebsd.org, phk@freebsd.org, smp@freebsd.org
Subject:   Netgraph and SMP
Message-ID:  <3A2A5EE3.56E711B8@elischer.org>

next in thread | raw e-mail | index | archive | help


I'm trying to figure out the locking needed for SMP in Netgraph.

Here are some of the various constraints that I see. (some of theme are not just
SMP issues).

1/ can't remove modules that are being used (the base framework) or have living
nodes (other netgraph modules).
2/ Cannot remove a node if it is in use, (or in a return stack somewhere)
3/ Cannot unlink an 'edge' if someone is passing data across it.
4/ cannot use edges and nodes that are in the process of being set up or torn
down.
5/ Defered deliveries cannot be made to nodes that are being removed.
6/ Nodes cannot be completely removed if there are pending deliveries for them.

What locking schemes to otther people use for protecting intricate structures of
objects with various interconnections? The buffer cache is one example that
comes to mind, as is the routing table.

Julian
-- 
      __--_|\  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?3A2A5EE3.56E711B8>