From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [PATCH RFC batadv v3 0/6] batman-adv: tt: atomic sashiko fixes
Date: Wed, 05 Aug 2026 20:46:27 +0200 [thread overview]
Message-ID: <13818925.O9o76ZdvQC@sven-desktop> (raw)
In-Reply-To: <20260805-tt-fixes-v3-0-25b00b558470@narfation.org>
[-- Attachment #1: Type: text/plain, Size: 1513 bytes --]
On Wednesday, 5 August 2026 17:09:34 CEST Sven Eckelmann wrote:
> There were a couple of sashiko reports regarding the
> batadv-next-pullrequest-20260728 PR. I went through the TT code and tried
> to handle them and at the same time already predict what else sashiko might
> report as next. I needed to change the batadv_tt_local_remove() hash
> interaction as preparation for the related NEW flag (and counter) handling.
>
> And the netdev maintainers rejected this approach (for now). I had to
> re-add the atomic_t code parts back in this patchset. But since the netdev
> maintainers didn't like the atomic_t implementation, everything was changed
> to atomic_t with the help of scoped_guard().
>
> Signed-off-by: Sven Eckelmann <sven@narfation.org>
> ---
> Changes in v3:
> - switched to spinlock_bh due to rejection atomic_t by netdev (and
> potentially easier code)
Mixed up some corner case flag handling while converting it back from atomic_t
to the original simple handling. My bad but easy to fix in v4.
But it is more problematic that the cleanup.h states:
* Lastly, given that the benefit of cleanup helpers is removal of
* "goto", and that the "goto" statement can jump between scopes, the
* expectation is that usage of "goto" and cleanup helpers is never
* mixed in the same function. I.e. for a given routine, convert all
* resources that need a "goto" cleanup to scope-based cleanup, or
* convert none of them.
I am not 100% sure how to deal with this at the moment
Regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
prev parent reply other threads:[~2026-08-05 18:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-05 15:09 [PATCH RFC batadv v3 0/6] batman-adv: tt: atomic sashiko fixes Sven Eckelmann
2026-08-05 15:09 ` [PATCH RFC batadv v3 1/6] batman-adv: tt: remove only the entry which was looked up from the hash Sven Eckelmann
2026-08-05 15:09 ` [PATCH RFC batadv v3 2/6] batman-adv: tt: extract code handling a roam on add Sven Eckelmann
2026-08-05 15:09 ` [PATCH RFC batadv v3 3/6] batman-adv: tt: simplify NEW flag transition code Sven Eckelmann
2026-08-05 15:09 ` [PATCH RFC batadv v3 4/6] batman-adv: tt: use atomic flag modifications Sven Eckelmann
2026-08-05 15:09 ` [PATCH RFC batadv v3 5/6] batman-adv: tt: decrement count for committed client on local_remove Sven Eckelmann
2026-08-05 15:09 ` [PATCH RFC batadv v3 6/6] batman-adv: tt: don't uncount never committed clients on pending purge Sven Eckelmann
2026-08-05 18:46 ` Sven Eckelmann [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=13818925.O9o76ZdvQC@sven-desktop \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.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