[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <baf89177-9fcc-dda4-fefd-57537018c94e@suse.com>
Date: Fri, 7 Sep 2018 11:50:08 +0200
From: Juergen Gross <jgross@...e.com>
To: Olaf Hering <olaf@...fle.de>
Cc: xen-devel@...ts.xenproject.org,
Boris Ostrovsky <boris.ostrovsky@...cle.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3] xen: avoid crash in disable_hotplug_cpu
On 07/09/18 11:24, Olaf Hering wrote:
> Am Fri, 7 Sep 2018 09:48:28 +0200
> schrieb Juergen Gross <jgross@...e.com>:
>
>> On 07/09/18 08:30, Olaf Hering wrote:
>>> + if (cpu_online(cpu))
>>> + return;
>>> if (cpu_present(cpu))
>>> xen_arch_unregister_cpu(cpu);
>
>> Could you merge the two if conditions?
>> if (!cpu_online(cpu) && cpu_present(cpu))
>> xen_arch_unregister_cpu(cpu);
>
> Is that any different, beside being wrong, from what the patch actually does?
No. Just a matter of style.
> It would still clear the present bit later on.
This should be part of the if clause, of course.
Juergen
Powered by blists - more mailing lists