From: Johannes Berg <johannes@sipsolutions.net>
To: Nikolay Martynov <mar.kolya@gmail.com>
Cc: linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH v2 0/3] mac80211: timeout tx agg sessions in way similar to rx agg sessions
Date: Thu, 24 Nov 2011 19:39:04 +0100 [thread overview]
Message-ID: <1322159944.5366.42.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <CALGY4fv6NTRDPUEa-7h+DqaHZwdKnNG4fEmzyHrYZukz3B1gqA@mail.gmail.com> (sfid-20111124_193358_972023_10DAB172)
On Thu, 2011-11-24 at 13:33 -0500, Nikolay Martynov wrote:
> > Looks OK to me. Did you run it through sparse too? :-)
> >
> Please forgive my lack of experience, but could you please point me
> to some docs where I can read about sparse and how to use it? I'd
> really appreciate this.
Sure, FWIW, I'm just asking because I received lots of patches recently
that later got sparse warnings. I guess you normally run something like
make M=net/mac80211
To run sparse, you add C=1 (just run sparse if cc runs) or C=2 (run
sparse on all files). Obviously you need to install sparse first, your
distribution probably has packages.
> Also, I one more thing I forgot to mention in original cover letter.
> Some time before this patch I've posted patch for ath9k: "[PATCH v3]
> ath9k: improve ath_tx_aggr_stop to avoid TID stuck in cleanup state".
> I've noticed that bug fixed in ath9k patch is triggered much more
> often when this patch to mac80211 applied. Probably because of some
> timing issues when TID is being closed from both ends at about same
> time.
> What I mean to say is that this patch to mac80211 should probably be
> applied after that patch to ath9k to avoid making ath9k less stable.
You should send that info to the list not just me, I've added the list
back.
> And one more thing, if you do not mind.
> 'ieee80211_stop_tx_ba_session' tests tx_tid->state for
> HT_AGG_STATE_STOPPING holding only spinlock on sta->lock.
> '___ieee80211_stop_tx_ba_session' sets this bit when spin lock on
> sta->lock is not being held. It seems to be that this could lead to
> problems if these two functions get called at about same time (which
> could easily happen when this patch is applied). Although actual
> window when lock is not help is really small. But I think the way it
> is currently done could still lead to problems. I think
> 'set_bit(HT_AGG_STATE_STOPPING, &tid_tx->state);' should be moved up
> to be covered by spin lock. I can include this as a part of next
> version of my patch. I'd really appreciate your thoughts about this.
Yeah that does indeed seem like an issue -- please send a separate patch
outside of this series and add Cc: stable@vger.kernel.org (to the patch
description not to the actual email, if you're not familiar with the
stable submission rules please check for those)
johannes
next prev parent reply other threads:[~2011-11-24 18:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-23 2:50 [PATCH v2 0/3] mac80211: timeout tx agg sessions in way similar to rx agg sessions Nikolay Martynov
2011-11-23 2:50 ` [PATCH v2 1/3] " Nikolay Martynov
2011-11-23 2:50 ` [PATCH v2 2/3] mac80211: trivial: use WLAN_BACK_RECIPIENT instead of hardcoded 0 Nikolay Martynov
2011-11-23 2:50 ` [PATCH v2 3/3] mac80211: log reason and initiator when rx agg is stopped Nikolay Martynov
2011-11-24 18:17 ` [PATCH v2 0/3] mac80211: timeout tx agg sessions in way similar to rx agg sessions Johannes Berg
2011-11-24 18:34 ` Nikolay Martynov
[not found] ` <CALGY4fv6NTRDPUEa-7h+DqaHZwdKnNG4fEmzyHrYZukz3B1gqA@mail.gmail.com>
2011-11-24 18:39 ` Johannes Berg [this message]
2011-11-24 18:45 ` Johannes Berg
2011-11-24 18:57 ` Nikolay Martynov
2011-11-25 4:43 ` Nikolay Martynov
2011-11-25 7:34 ` 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=1322159944.5366.42.camel@jlt3.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=mar.kolya@gmail.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