[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87tui7bc5m.ffs@tglx>
Date: Sun, 26 Sep 2021 17:16:05 +0200
From: Thomas Gleixner <tglx@...utronix.de>
To: Christoph Hellwig <hch@...radead.org>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>
Cc: linux-kernel@...r.kernel.org, Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH] smp: Wake ksoftirqd on PREEMPT_RT instead do_softirq().
On Sat, Sep 25 2021 at 11:31, Christoph Hellwig wrote:
> On Fri, Sep 24, 2021 at 11:47:55AM +0200, Sebastian Andrzej Siewior wrote:
>> + if (local_softirq_pending()) {
>> +
>> + if (!IS_ENABLED(CONFIG_PREEMPT_RT)) {
>> + do_softirq();
>> + } else {
>> + struct task_struct *ksoftirqd = this_cpu_ksoftirqd();
>> +
>> + if (ksoftirqd && !task_is_running(ksoftirqd))
>> + wake_up_process(ksoftirqd);
>> + }
>> + }
>
> At a cosmetic level this looks pretty weird. Why the empty line inside
> the indented block? Why the pointless negation instead of the obvious
> more straightforward order?
Yeah, the empty line is stray.
The negation is because quite some people complained in the past about
doing it the other way round as they want to see the !RT case first.
De gustibus non est disputandum :)
Thanks,
tglx
Powered by blists - more mailing lists