[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161025155712.GA12546@redhat.com>
Date: Tue, 25 Oct 2016 17:57:12 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Roman Penyaev <roman.penyaev@...fitbricks.com>
Cc: Andy Lutomirski <luto@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Tejun Heo <tj@...nel.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue
sleep hook
On 10/25, Oleg Nesterov wrote:
>
> void oops_end_exit(void)
> {
> current->flags &= ~PF_WQ_WORKER;
> perhaps sonething else;
> }
>
> called by oops_end() before rewind_stack_do_exit() ?
and "perhaps sonething else" above should probably clear current->plug,
it likely points to "struct blk_plug" on stack.
and perhaps call task_work_run(). Currently only irq_thread() uses the
"destructor" work on stack, but think can have more users.
Oleg.
Powered by blists - more mailing lists