Skip to content

mac802154: remove pib/mib locks

Alexander Aring linux-wpan 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mac802154: fix hold rtnl while ioctlnet/mac802154/iface.c+3 -20 replies
2/3mac802154: remove pib lockinclude/net/cfg802154.h net/ieee802154/core.c net/ieee802154/nl-phy.c +2 more+5 -160 replies
3/3mac802154: remove mib lockinclude/net/ieee802154_netdev.h net/ieee802154/6lowpan/core.c net/ieee802154/6lowpan/tx.c +7 more+24 -1385 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH bluetooth-next 0/3] mac802154: remove pib/mib locks

This patch series removes the pib/mib lock inside the mac802154 subsystem. The new locking mechanism will use the rtnl lock to ensure that other operations like ifdown/ifup can't happend while setting pib/mib values.

Note: the new locking strategy depends on context, on most mib values while interface up the mib attributes are readonly, this will allow us less complexity and locking stuff while frame parsing.

I tried my best to change the old netlink interface according to that, but I believe there is no real locking "strategy" in the old netlink calls and it's hard to understand how it works.

- Alex

Alexander Aring (3):
mac802154: fix hold rtnl while ioctl
mac802154: remove pib lock
mac802154: remove mib lock

 include/net/cfg802154.h         |  2 --
 include/net/ieee802154_netdev.h | 10 -------
 net/ieee802154/6lowpan/core.c   | 28 ------------------
 net/ieee802154/6lowpan/tx.c     |  2 +-
 net/ieee802154/core.c           |  2 --
 net/ieee802154/nl-mac.c         | 14 ++++++---
 net/ieee802154/nl-phy.c         |  6 ++--
 net/ieee802154/socket.c         | 12 ++++----
 net/mac802154/ieee802154_i.h    |  9 ------
 net/mac802154/iface.c           | 25 +++++-----------
 net/mac802154/mac_cmd.c         | 10 +++----
 net/mac802154/mib.c             | 63 ++---------------------------------------
 net/mac802154/rx.c              |  5 ----
 13 files changed, 32 insertions(+), 156 deletions(-)
Signature · 1 line
2.3.7