public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Cc: Johannes Berg <johannes@sipsolutions.net>,
	linux-wireless@vger.kernel.org
Subject: Re: [PATCH wireless-next] wifi: mac80211: Remove deleted sta links in ieee80211_ml_reconf_work()
Date: Sun, 8 Mar 2026 14:28:00 +0100	[thread overview]
Message-ID: <aa15YDx5G7WN-nsH@lore-desk> (raw)
In-Reply-To: <jv2kdsru66rktkm6bwq3ww5wshubjtv36le5xk4ziedocc72gp@psssohaoamus>

[-- Attachment #1: Type: text/plain, Size: 542 bytes --]

> > +	rcu_read_lock();
> > +	sta = sta_info_get(sdata, sdata->vif.cfg.ap_addr);
> > +	if (sta) {
> > +		unsigned long removed_links = sdata->u.mgd.removed_links;
> > +		unsigned int link_id;
> > +
> > +		for_each_set_bit(link_id, &removed_links,
> > +				 IEEE80211_MLD_MAX_NUM_LINKS)
> > +			ieee80211_sta_free_link(sta, link_id);
> > +	}
> > +	rcu_read_unlock();
> > +
> 
> Could use scoped_guard(rcu) instead?

I do not have a strong opinion here.
@Johannes: Which one do you prefer?

Regards,
Lorenzo

> 
> lachlan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-03-08 13:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-07 18:45 [PATCH wireless-next] wifi: mac80211: Remove deleted sta links in ieee80211_ml_reconf_work() Lorenzo Bianconi
2026-03-08  7:34 ` Lachlan Hodges
2026-03-08 13:28   ` Lorenzo Bianconi [this message]
2026-03-09  7:14     ` Johannes Berg
2026-03-09  8:20       ` Lorenzo Bianconi
2026-03-09  8:22         ` 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=aa15YDx5G7WN-nsH@lore-desk \
    --to=lorenzo@kernel.org \
    --cc=johannes@sipsolutions.net \
    --cc=lachlan.hodges@morsemicro.com \
    --cc=linux-wireless@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