From: Johannes Berg <johannes@sipsolutions.net>
To: wey-yi.w.guy@intel.com
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/1] mac80211: only single mutex locked to prevent deadlock
Date: Mon, 25 Jan 2010 19:23:23 +0100 [thread overview]
Message-ID: <1264443803.23766.48.camel@johannes.local> (raw)
In-Reply-To: <1264443136-30865-1-git-send-email-wey-yi.w.guy@intel.com>
[-- Attachment #1: Type: text/plain, Size: 472 bytes --]
On Mon, 2010-01-25 at 10:12 -0800, wey-yi.w.guy@intel.com wrote:
> From: Wey-Yi Guy <wey-yi.w.guy@intel.com>
>
> Both ifmgd->mtx and sdata->local->iflist_mtx are locked in
> ieee80211_mgd_probe_ap(), not sure it will cause deadlock condition. but
> it is better to only has one mutex at a time.
It shouldn't cause a deadlock, we do this all the time, e.g. in
ieee80211_rx_mgmt_probe_resp(), so I don't think the extra locking makes
a lot of sense.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
prev parent reply other threads:[~2010-01-25 18:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-25 18:12 [PATCH 1/1] mac80211: only single mutex locked to prevent deadlock wey-yi.w.guy
2010-01-25 18:23 ` Johannes Berg [this message]
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=1264443803.23766.48.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=wey-yi.w.guy@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox