From: Alexander Aring <alex.aring@gmail.com>
To: linux-wpan@vger.kernel.org
Cc: kernel@pengutronix.de, Alexander Aring <alex.aring@gmail.com>
Subject: [PATCH bluetooth-next 2/4] mac802154: iface: flush workqueue before stop
Date: Sat, 13 Jun 2015 22:15:52 +0200 [thread overview]
Message-ID: <1434226554-1450-2-git-send-email-alex.aring@gmail.com> (raw)
In-Reply-To: <1434226554-1450-1-git-send-email-alex.aring@gmail.com>
This patch flushs the workqueue which is currently used for xmit_sync
callback before calling stop driver-ops. Flush the queue will ensure all
pending tx frames are transmitted.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
net/mac802154/iface.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index d804337..692731d 100644
--- a/net/mac802154/iface.c
+++ b/net/mac802154/iface.c
@@ -308,6 +308,7 @@ static int mac802154_slave_close(struct net_device *dev)
clear_bit(SDATA_STATE_RUNNING, &sdata->state);
if (!local->open_count) {
+ flush_workqueue(local->workqueue);
hrtimer_cancel(&local->ifs_timer);
drv_stop(local);
}
--
2.4.1
next prev parent reply other threads:[~2015-06-13 20:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-13 20:15 [PATCH bluetooth-next 1/4] mac802154: iface: fix hrtimer cancel on ifdown Alexander Aring
2015-06-13 20:15 ` Alexander Aring [this message]
2015-06-14 23:24 ` [PATCH bluetooth-next 2/4] mac802154: iface: flush workqueue before stop Marcel Holtmann
2015-06-13 20:15 ` [PATCH bluetooth-next 3/4] at86rf230: use level high as fallback default Alexander Aring
2015-06-14 23:24 ` Marcel Holtmann
2015-06-13 20:15 ` [PATCH bluetooth-next 4/4] at86rf230: add support for sleep state Alexander Aring
2015-06-14 23:24 ` Marcel Holtmann
2015-06-14 23:24 ` [PATCH bluetooth-next 1/4] mac802154: iface: fix hrtimer cancel on ifdown Marcel Holtmann
2015-06-20 5:19 ` Lennert Buytenhek
2015-06-20 9:10 ` Alexander Aring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434226554-1450-2-git-send-email-alex.aring@gmail.com \
--to=alex.aring@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-wpan@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox