From: Sebastian Ott <sebott@linux.vnet.ibm.com>
To: Tejun Heo <tj@kernel.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Christoph Lameter <cl@linux.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH percpu/for-3.18-fixes] s390: fix machine check regression caused by the conversion from __get_cpu_var() to this_cpu_ptr()
Date: Tue, 2 Dec 2014 18:32:28 +0100 (CET) [thread overview]
Message-ID: <alpine.LFD.2.11.1412021829260.1611@denkbrett> (raw)
In-Reply-To: <20141202171911.GD10918@htj.dyndns.org>
On Tue, 2 Dec 2014, Tejun Heo wrote:
> Sorry about the delay. Was on vacation.
>
> Patch applied to percpu/for-3.18-fixes w/ minor updates to the patch
> subject and description. Will push out to Linus soon.
>
I've seen that Martin took the patch and it's already in Linus' tree -
commit 2cb4a18262fd0108cb8abd875710c59d0aa66f1d
Regards,
Sebastian
> Thanks.
>
> arch/s390/kernel/nmi.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/arch/s390/kernel/nmi.c b/arch/s390/kernel/nmi.c
> index dd1c24c..3f51cf4 100644
> --- a/arch/s390/kernel/nmi.c
> +++ b/arch/s390/kernel/nmi.c
> @@ -54,12 +54,8 @@ void s390_handle_mcck(void)
> */
> local_irq_save(flags);
> local_mcck_disable();
> - /*
> - * Ummm... Does this make sense at all? Copying the percpu struct
> - * and then zapping it one statement later?
> - */
> - memcpy(&mcck, this_cpu_ptr(&cpu_mcck), sizeof(mcck));
> - memset(&mcck, 0, sizeof(struct mcck_struct));
> + mcck = *this_cpu_ptr(&cpu_mcck);
> + memset(this_cpu_ptr(&cpu_mcck), 0, sizeof(mcck));
> clear_cpu_flag(CIF_MCCK_PENDING);
> local_mcck_enable();
> local_irq_restore(flags);
> --
> 2.1.0
>
>
next prev parent reply other threads:[~2014-12-02 17:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-28 15:03 PATCH] s390: fix machine check handling Sebastian Ott
2014-11-28 15:38 ` Christoph Lameter
2014-12-02 17:19 ` [PATCH percpu/for-3.18-fixes] s390: fix machine check regression caused by the conversion from __get_cpu_var() to this_cpu_ptr() Tejun Heo
2014-12-02 17:32 ` Sebastian Ott [this message]
2014-12-02 17:44 ` Tejun Heo
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=alpine.LFD.2.11.1412021829260.1611@denkbrett \
--to=sebott@linux.vnet.ibm.com \
--cc=cl@linux.com \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=schwidefsky@de.ibm.com \
--cc=tj@kernel.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