Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1508405

Re: [PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue sleep hook

From Oleg Nesterov <oleg@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue sleep hook
Date 2016-10-25 18:10 +0200
Message-ID <swcsx-7SW-11@gated-at.bofh.it> (permalink)
References <sw7Me-4N9-27@gated-at.bofh.it> <sw9uG-5Lw-7@gated-at.bofh.it> <sw9El-641-23@gated-at.bofh.it> <swaTM-6Oo-17@gated-at.bofh.it> <swciW-7zc-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


sorry for noise, forgot to mention...

On 10/25, Oleg Nesterov wrote:
>
> 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.

and, probably absorb some code from do_exit(), say set_fs(USER_DS) and/or
PF_EXITING check.

Oleg.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue sleep hook Roman Pen <roman.penyaev@profitbricks.com> - 2016-10-25 13:10 +0200
  Re: [PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue         sleep hook Oleg Nesterov <oleg@redhat.com> - 2016-10-25 15:00 +0200
    Re: [PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue sleep hook Roman Penyaev <roman.penyaev@profitbricks.com> - 2016-10-25 15:10 +0200
      Re: [PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue         sleep hook Oleg Nesterov <oleg@redhat.com> - 2016-10-25 16:30 +0200
        Re: [PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue         sleep hook Oleg Nesterov <oleg@redhat.com> - 2016-10-25 18:00 +0200
          Re: [PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue         sleep hook Oleg Nesterov <oleg@redhat.com> - 2016-10-25 18:10 +0200
            Re: [PATCH v3 1/1] workqueue: ignore dead tasks in a workqueue sleep hook Roman Penyaev <roman.penyaev@profitbricks.com> - 2016-10-25 20:20 +0200

csiph-web