From: Johannes Berg <johannes@sipsolutions.net>
To: Eliad Peller <eliad@wizery.com>
Cc: John Linville <linville@tuxdriver.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 4/4] mac80211: notify driver of rate control updates
Date: Thu, 29 Mar 2012 21:14:48 +0200 [thread overview]
Message-ID: <1333048488.3575.12.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <CAB3XZEcRej38SN_QKrUE0mF_Wd2MbfXUSPOHihC8EG2bsaxwkQ@mail.gmail.com> (sfid-20120329_211345_131703_477D0953)
On Thu, 2012-03-29 at 21:13 +0200, Eliad Peller wrote:
> > *
> > + * @sta_rc_update: Notifies the driver of changes to the bitrates that can be
> > + * used to transmit to the station. The changes are advertised with bits
> > + * from &enum ieee80211_rate_control_changed and the values are reflected
> > + * in the station data. This callback should only be used when the driver
> > + * uses hardware rate control (%IEEE80211_HW_HAS_RATE_CONTROL) since
> > + * otherwise the rate control algorithm is notified directly.
> > + * Must be atomic.
> > + *
> it's either atomic...
>
> > +static inline void drv_sta_rc_update(struct ieee80211_local *local,
> > + struct ieee80211_sub_if_data *sdata,
> > + struct ieee80211_sta *sta, u32 changed)
> > +{
> > + might_sleep();
>
> or might sleep :)
Oh wow, it must be atomic since it's potentially in the RX path. I guess
the other path (the more common one) doesn't require atomic. Good catch,
thanks!
johannes
next prev parent reply other threads:[~2012-03-29 19:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-28 8:58 [PATCH 0/4] early HT channel setting Johannes Berg
2012-03-28 8:58 ` [PATCH 1/4] mac80211: set HT channel before association Johannes Berg
2012-03-28 8:58 ` [PATCH 2/4] mac80211: remove channel type argument from rate_update Johannes Berg
2012-03-30 4:37 ` Sujith Manoharan
2012-03-30 6:46 ` Johannes Berg
2012-03-30 7:12 ` Sujith Manoharan
2012-03-28 8:58 ` [PATCH 3/4] mac80211: remove queue stop on rate control update Johannes Berg
2012-03-28 8:58 ` [PATCH 4/4] mac80211: notify driver of rate control updates Johannes Berg
2012-03-29 19:13 ` Eliad Peller
2012-03-29 19:14 ` Johannes Berg [this message]
2012-03-30 6:43 ` [PATCH 4/4 v2] " 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=1333048488.3575.12.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=eliad@wizery.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.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;
as well as URLs for NNTP newsgroup(s).