Re: [PATCH][ATM] use rtnl_{lock,unlock} during device operations

David S. Miller (davem@redhat.com)
Fri, 06 Jun 2003 08:28:02 -0700 (PDT)


From: Werner Almesberger <wa@almesberger.net>
Date: Fri, 6 Jun 2003 12:26:16 -0300

David S. Miller wrote:
> But regardless I should be able to yank an ATM device out of the
> kernel (unregistering it) even if there are a thousand VCC's attached
> to it.

Why ? A VCC is more like a network interface than a TCP
connection.

It's more like an IP tunnel and a route, granted. And those are
similarly configured, and to me the same rules apply.

Removing an ATM device while there are open VCCs isn't a lot
more useful than removing a telephone while there is still a
call in progress :-)

It's like rmmod'ing TCP while you have TCP connections.
And it's like unregistering IP tunnels while you still have
routes going over them, the routes just get deleted.

And frankly I see absolutely NOTHING wrong with doing these
sorts of things.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/