From: Johannes Berg <johannes@sipsolutions.net>
To: Rajkumar Manoharan <rmanoharan@atheros.com>
Cc: Rajkumar Manoharan <Rajkumar.Manoharan@Atheros.com>,
"linville@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] mac80211: cancel scan_work in ieee80211_unregister_hw
Date: Fri, 13 May 2011 17:43:36 +0200 [thread overview]
Message-ID: <1305301416.3468.9.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <20110513053533.GA20459@vmraj-lnx.users.atheros.com>
On Fri, 2011-05-13 at 11:05 +0530, Rajkumar Manoharan wrote:
> > How did you come to that conclusion? ieee80211_do_stop() does stop the
> > scan.
> >
> True. But Sometimes ieee80211_scan_cancel is waiting for mutex where
> the lock was already aquired by scan work and scan_work never releases
> the lock till scan completion whenever next_delay == 0.
But that shouldn't take a long time. And if it's "stuck" there, then
cancel_delayed_work_sync() will also wait for it.
> This scenario was observed while unplug the card during scan.
If this happens then mac80211 will still make calls to the driver, I
don't think we can avoid this and drivers will need to handle it. Maybe
the driver is repeatedly timing out somewhere?
johannes
next prev parent reply other threads:[~2011-05-13 15:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-12 17:09 [PATCH] mac80211: cancel scan_work in ieee80211_unregister_hw Rajkumar Manoharan
2011-05-12 17:25 ` Johannes Berg
2011-05-13 5:35 ` Rajkumar Manoharan
2011-05-13 10:53 ` Stanislaw Gruszka
2011-05-13 15:43 ` Johannes Berg [this message]
2011-05-13 17:18 ` Rajkumar Manoharan
2011-05-13 17:39 ` Johannes Berg
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=1305301416.3468.9.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=Rajkumar.Manoharan@Atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=rmanoharan@atheros.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.