From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: linux-rt-users@vger.kernel.org, riel@redhat.com,
tglx@linutronix.de, srostedt@redhat.com, williams@redhat.com
Subject: Re: [PATCH RESEND -rt] mm: perform lru_add_drain_all() remotely
Date: Thu, 12 May 2016 11:21:51 +0200 [thread overview]
Message-ID: <20160512092151.GC19035@linutronix.de> (raw)
In-Reply-To: <20160512084230.GA19035@linutronix.de>
* Sebastian Andrzej Siewior | 2016-05-12 10:42:30 [+0200]:
>>diff --git a/mm/swap.c b/mm/swap.c
>>index ca194ae..84c3c21 100644
>>--- a/mm/swap.c
>>+++ b/mm/swap.c
>>@@ -821,9 +821,9 @@ void lru_add_drain_cpu(int cpu)
>> unsigned long flags;
>>
>> /* No harm done if a racing interrupt already did this */
>>- local_lock_irqsave(rotate_lock, flags);
>>+ local_lock_irqsave_other_cpu(rotate_lock, flags, cpu);
>> pagevec_move_tail(pvec);
>>- local_unlock_irqrestore(rotate_lock, flags);
>>+ local_unlock_irqrestore_other_cpu(rotate_lock, flags, cpu);
>
>This piece might be required independently of this patch. It would be
>nice to have it in page_alloc_cpu_notify() :) I take care of this…
no, I won't :)
It looks halfway like an upstream bug. Vanila has here local_irq_save()
which always matches the local CPU except when it is invoked from
page_alloc_cpu_notify() CPU_DEAD notifier. Here it does not matter
because the CPU is gone and won't take the locks anymore.
Unless, we start taking them cross-CPU which is only possible with this
patch.
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-05-12 9:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-09 14:50 [PATCH RESEND -rt] mm: perform lru_add_drain_all() remotely Luiz Capitulino
2016-05-12 8:42 ` Sebastian Andrzej Siewior
2016-05-12 9:21 ` Sebastian Andrzej Siewior [this message]
2016-05-12 13:51 ` Luiz Capitulino
2016-05-12 14:49 ` Sebastian Andrzej Siewior
2016-05-12 19:52 ` Luiz Capitulino
2016-05-25 15:59 ` Sebastian Andrzej Siewior
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=20160512092151.GC19035@linutronix.de \
--to=bigeasy@linutronix.de \
--cc=lcapitulino@redhat.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=riel@redhat.com \
--cc=srostedt@redhat.com \
--cc=tglx@linutronix.de \
--cc=williams@redhat.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;
as well as URLs for NNTP newsgroup(s).