Skip to content

mac802154: remove pib/mib locks and locking fixes

Alexander Aring linux-wpan 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 10 repliesIn review
  2. v14 patches 12 repliesSuperseded

changes since v2 from the cover letter

- switch patch 3 and 4.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mac802154: fix hold rtnl while ioctlnet/mac802154/iface.c+3 -29 replies
2/4mac802154: remove pib lockinclude/net/cfg802154.h net/ieee802154/core.c net/ieee802154/nl-phy.c +2 more+5 -160 replies
3/4mac802154: use atomic ops for sequence incrementationinclude/net/cfg802154.h include/net/ieee802154_netdev.h net/ieee802154/6lowpan/core.c +4 more+8 -250 replies
4/4mac802154: remove mib lockinclude/net/ieee802154_netdev.h net/ieee802154/6lowpan/core.c net/ieee802154/6lowpan/tx.c +7 more+18 -1140 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchStefan SchmidtAlexander Aring
1/4R-b A-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 bluetooth-next 0/4] mac802154: remove pib/mib locks and locking fixes

Hi,

this patch series contains patches for remove pib and mib lock. We have now a other locking strategie inside this stack which requires at the moment the rtnl lock only. The first patch will hold the rtnl lock which is required to access the mib attributes while calling socket ioctl. The last patch will use atomic operations for incremet the dsn value for dataframes, currently it could be that this value is the same in two contiguous frames which could be occur a wrong ack frame handling in ARET mode.

- Alex

changes since v2:
- switch patch 3 and 4.

Alexander Aring (4):
mac802154: fix hold rtnl while ioctl
mac802154: remove pib lock
mac802154: use atomic ops for sequence incrementation
mac802154: remove mib lock

 include/net/cfg802154.h         |  6 ++--
 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    |  7 -----
 net/mac802154/iface.c           | 29 ++++++-------------
 net/mac802154/mac_cmd.c         |  7 ++---
 net/mac802154/mib.c             | 63 ++---------------------------------------
 net/mac802154/rx.c              |  5 ----
 13 files changed, 34 insertions(+), 157 deletions(-)
Signature · 1 line
2.4.1