From: "Hillf Danton" <hillf.zj@alibaba-inc.com>
To: "'Martin Schwidefsky'" <schwidefsky@de.ibm.com>
Cc: "'linux-kernel'" <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>
Subject: Re: [PATCH 2/2] s390/mm: use ipte range to invalidate multiple page table entries
Date: Wed, 06 Jul 2016 14:42:16 +0800 [thread overview]
Message-ID: <015301d1d751$8973de50$9c5b9af0$@alibaba-inc.com> (raw)
In-Reply-To: <20160706082350.5c56ca40@mschwide>
> > >
> > > +void ptep_invalidate_range(struct mm_struct *mm, unsigned long start,
> > > + unsigned long end, pte_t *ptep)
> > > +{
> > > + unsigned long nr;
> > > +
> > > + if (!MACHINE_HAS_IPTE_RANGE || mm_has_pgste(mm))
> > > + return;
> > > + preempt_disable();
> > > + nr = (end - start) >> PAGE_SHIFT;
> > > + /* If the flush is likely to be local skip the ipte range */
> > > + if (nr && !cpumask_equal(mm_cpumask(mm),
> > > + cpumask_of(smp_processor_id())))
> >
> > s/smp/raw_smp/ to avoid adding schedule entry with page table
> > lock held?
>
> There can not be a schedule entry with either the page table lock held
> or the preempt_disable() a few lines above.
>
Yes, Sir.
> > > + __ptep_ipte_range(start, nr - 1, ptep);
> > > + preempt_enable();
Then would you please, Sir, take a look at another case where
preempt is enabled?
> > > +}
> > > +EXPORT_SYMBOL(ptep_invalidate_range);
> > > +
> >
thanks
Hillf
next prev parent reply other threads:[~2016-07-06 6:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <014201d1d738$744c8f90$5ce5aeb0$@alibaba-inc.com>
2016-07-06 4:03 ` [PATCH 2/2] s390/mm: use ipte range to invalidate multiple page table entries Hillf Danton
2016-07-06 6:23 ` Martin Schwidefsky
2016-07-06 6:42 ` Hillf Danton [this message]
2016-07-06 8:47 ` Martin Schwidefsky
2016-07-06 9:26 ` Hillf Danton
2016-07-06 10:51 ` Martin Schwidefsky
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='015301d1d751$8973de50$9c5b9af0$@alibaba-inc.com' \
--to=hillf.zj@alibaba-inc.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=schwidefsky@de.ibm.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