mac802154: tx: fix synced xmit deadlock
authorAlexander Aring <alex.aring@gmail.com>
Wed, 9 Dec 2015 22:23:56 +0000 (23:23 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 10 Dec 2015 18:17:11 +0000 (19:17 +0100)
commitc38383530fb5e160b739aff4bf08c1cc2dfcc659
tree246187f351c775f493ebfff55fc61c880e3541fe
parent818f1f3e70dd4c8e6f8d59c617857be0fa0fce7c
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>
net/mac802154/driver-ops.h
net/mac802154/tx.c