From: Yury Norov <ynorov@nvidia.com>
To: Bibo Mao <maobibo@loongson.cn>
Cc: Yury Norov <yury.norov@gmail.com>,
Rasmus Villemoes <linux@rasmusvillemoes.dk>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: One question about API cpumask_setall()
Date: Tue, 28 Jul 2026 21:55:31 -0400 [thread overview]
Message-ID: <amldg42TIxaJLaU8@yury> (raw)
In-Reply-To: <e19cfdea-d592-8506-4cba-efd37e51d459@loongson.cn>
On Tue, Jul 28, 2026 at 04:16:27PM +0800, Bibo Mao wrote:
> Hi,
>
> I am preparing to use API cpumask_setall() for TLB flush on LoongArch KVM
> side. There are cpumask_test_and_clear_cpu/cpumask_setall() APIs, it seems
> that API cpumask_setall() does not support atomic operation.
>
> Do you think it is reasonable to add new API similar with cpumask_setall()
> which supports atomic operation?
Maybe reasonable, but it's impossible. cpumask is a bitmap, which in
turn is an array of unsigned longs. There's no atomic operations on
arrays.
Thanks,
Yury
next prev parent reply other threads:[~2026-07-29 1:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 8:16 One question about API cpumask_setall() Bibo Mao
2026-07-29 1:55 ` Yury Norov [this message]
2026-07-29 2:13 ` Bibo Mao
2026-07-29 17:57 ` Yury Norov
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=amldg42TIxaJLaU8@yury \
--to=ynorov@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=maobibo@loongson.cn \
--cc=yury.norov@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