From: Rik van Riel <riel@surriel.com>
To: Siarhei Liakh <sliakh.lkml@gmail.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: Pointer magic in mm_init_cpumask()
Date: Wed, 21 Aug 2019 10:26:08 -0400 [thread overview]
Message-ID: <7d3d50666ced8fb27d0964fa51e78fcbd0aec82e.camel@surriel.com> (raw)
In-Reply-To: <CALBuU529+=+Xmsccc3AU2R0tSOCJtMQx=yMGDHopc3=tO3uM3Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 807 bytes --]
On Wed, 2019-08-21 at 09:13 -0400, Siarhei Liakh wrote:
> If mm_cpumask() is not safe, then at the very least the following has
> to be fixed:
> $ grep -rIn 'cpumask_clear(mm_cpumask(' *
> arch/powerpc/include/asm/tlb.h:69: cpumask_clear(mm_cpumask(mm));
> arch/sparc/mm/init_64.c:857: cpumask_clear(mm_cpumask(mm));
> arch/ia64/include/asm/mmu_context.h:92: cpumask_clear(mm_cpuma
> sk(mm));
> arch/csky/mm/asid.c:126: cpumask_clear(mm_cpumask(mm));
> arch/arm/mm/context.c:233: cpumask_clear(mm_cpumask(mm));
>
> Otherwise, mm_init_cpumask() can be simplified down to
> cpumask_clear(mm_cpumask(mm)).
> What do you think?
That looks like a nice cleanup.
I do not see why it would not work, but I suppose
that should be tested :)
--
All Rights Reversed.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2019-08-21 14:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-21 13:13 Siarhei Liakh
2019-08-21 14:26 ` Rik van Riel [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=7d3d50666ced8fb27d0964fa51e78fcbd0aec82e.camel@surriel.com \
--to=riel@surriel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sliakh.lkml@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
all inboxes | Powered by JetHome®