lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 13 Apr 2015 11:43:36 +0200
From:	Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To:	Mike Galbraith <umgwanakikbuti@...il.com>
CC:	linux-rt-users <linux-rt-users@...r.kernel.org>,
	LKML <linux-kernel@...r.kernel.org>,
	Thomas Gleixner <tglx@...utronix.de>, rostedt@...dmis.org,
	John Kacur <jkacur@...hat.com>
Subject: Re: [rfc patch v2] rt,nohz_full: fix nohz_full for PREEMPT_RT_FULL

On 04/11/2015 03:36 PM, Mike Galbraith wrote:
> On Sat, 2015-04-11 at 15:15 +0200, Mike Galbraith wrote:
>>
>> @@ -117,10 +113,8 @@ bool irq_work_queue(struct irq_work *wor
>>         if (work->flags & IRQ_WORK_HARD_IRQ) {
>>                 if (llist_add(&work->llnode, 
>> this_cpu_ptr(&hirq_work_list)))
>>                         arch_irq_work_raise();
>> -       } else {
>> -               if (llist_add(&work->llnode, 
>> this_cpu_ptr(&lazy_list)))
>> -                       arch_irq_work_raise();
>> -       }
>> +       } /* for lazy_list we have the timer irq */
>>
>> If we don't queue work without IRQ_WORK_HARD_IRQ set, how does it 
>> run?
>>
>> Anyway, box did not livelock, nor did it with that bit reverted.
> 
> Well, not reverted, I actually queued and maybe poked softirq, but 
> didn't check whether anything was being queued or not, only caring for 
> the nonce whether box went catatonic or kept on working.
> 
> @@ -118,8 +115,9 @@ bool irq_work_queue(struct irq_work *wor
>                 if (llist_add(&work->llnode, this_cpu_ptr(&hirq_work_list)))
>                         arch_irq_work_raise();
>         } else {
> -               if (llist_add(&work->llnode, this_cpu_ptr(&lazy_list)))
> -                       arch_irq_work_raise();
> +               if (llist_add(&work->llnode, this_cpu_ptr(&lazy_list)) &&
> +                   tick_nohz_tick_stopped())
> +                       raise_softirq(TIMER_SOFTIRQ);

This sounds like a good idea actually. Thanks.

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ