Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
* [PATCH bluetooth-next 0/3] mac802154: remove pib/mib locks
@ 2015-05-10 20:40 Alexander Aring
  2015-05-10 20:40 ` [PATCH bluetooth-next 1/3] mac802154: fix hold rtnl while ioctl Alexander Aring
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Alexander Aring @ 2015-05-10 20:40 UTC (permalink / raw)
  To: linux-wpan; +Cc: kernel, Alexander Aring

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(-)

-- 
2.3.7


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-05-12 12:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-10 20:40 [PATCH bluetooth-next 0/3] mac802154: remove pib/mib locks Alexander Aring
2015-05-10 20:40 ` [PATCH bluetooth-next 1/3] mac802154: fix hold rtnl while ioctl Alexander Aring
2015-05-10 20:40 ` [PATCH bluetooth-next 2/3] mac802154: remove pib lock Alexander Aring
2015-05-10 20:40 ` [PATCH bluetooth-next 3/3] mac802154: remove mib lock Alexander Aring
2015-05-12  7:50   ` Alexander Aring
2015-05-12 11:06     ` Phoebe Buckheister
2015-05-12 11:53       ` Alexander Aring
2015-05-12 12:22         ` Alexander Aring
2015-05-12 12:25           ` Phoebe Buckheister

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox