mac802154: tx: fix synced xmit deadlock
This patch reverts 6001d52
("mac802154: tx: don't allow if down while
sync tx"). This has side effects with stop callback which flush the
transmit workqueue. The stop callback will wait until the workqueue is
flushed and holding the rtnl lock. That means it can happen that the stop
callback waits forever because it try to lock the rtnl mutex which is
already hold by stop callback.
Cc: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:

committed by
Marcel Holtmann

parent
818f1f3e70
commit
c38383530f
@@ -18,9 +18,6 @@ drv_xmit_async(struct ieee802154_local *local, struct sk_buff *skb)
|
||||
static inline int
|
||||
drv_xmit_sync(struct ieee802154_local *local, struct sk_buff *skb)
|
||||
{
|
||||
/* don't allow other operations while sync xmit */
|
||||
ASSERT_RTNL();
|
||||
|
||||
might_sleep();
|
||||
|
||||
return local->ops->xmit_sync(&local->hw, skb);
|
||||
|
Reference in New Issue
Block a user