]> git.hungrycats.org Git - linux/commit
[PATCH] (3/4) dlci locking and registration changes
authorStephen Hemminger <shemminger@osdl.org>
Thu, 11 Sep 2003 11:33:20 +0000 (07:33 -0400)
committerStephen Hemminger <shemminger@osdl.org>
Thu, 11 Sep 2003 11:33:20 +0000 (07:33 -0400)
commitefb377f604efbd5b9175873316c05d18187ebb1a
treea6133a4dabc3f34e43c1fdcc8beb2e0adce73265
parent344332f5a2725c1d52ab156a6e2cee31761d8744
[PATCH] (3/4) dlci locking and registration changes

Change the locking for the dlci device list and registration.
- use RTNL instead of a private lock (needed for net notifier in next patch).
- reorder the checks in the dlci_add to avoid complicated unwinds
- use dev->destructor to free
- hold RTNL around deassoc to protect callback from races
drivers/net/wan/dlci.c