Re: [RFC] exit: do exit_task_work() before shooting off mm

2020-12-20 Thread Pavel Begunkov
On 20/12/2020 13:58, Oleg Nesterov wrote: > On 12/20, Pavel Begunkov wrote: >> >> On 08/12/2020 01:37, Al Viro wrote: >>> On Thu, Dec 03, 2020 at 02:30:46AM +, Pavel Begunkov wrote: Handle task works and lock it earlier before it starts killing off task's resources like mm. io_uring

Re: [RFC] exit: do exit_task_work() before shooting off mm

2020-12-20 Thread Oleg Nesterov
On 12/20, Pavel Begunkov wrote: > > On 08/12/2020 01:37, Al Viro wrote: > > On Thu, Dec 03, 2020 at 02:30:46AM +, Pavel Begunkov wrote: > >> Handle task works and lock it earlier before it starts killing off > >> task's resources like mm. io_uring makes use of it a lot and it'd > >> nicer to

Re: [RFC] exit: do exit_task_work() before shooting off mm

2020-12-20 Thread Pavel Begunkov
On 08/12/2020 01:37, Al Viro wrote: > On Thu, Dec 03, 2020 at 02:30:46AM +, Pavel Begunkov wrote: >> Handle task works and lock it earlier before it starts killing off >> task's resources like mm. io_uring makes use of it a lot and it'd >> nicer to have all added task_work finding tasks in a

Re: [RFC] exit: do exit_task_work() before shooting off mm

2020-12-07 Thread Pavel Begunkov
On 08/12/2020 01:37, Al Viro wrote: > On Thu, Dec 03, 2020 at 02:30:46AM +, Pavel Begunkov wrote: >> Handle task works and lock it earlier before it starts killing off >> task's resources like mm. io_uring makes use of it a lot and it'd >> nicer to have all added task_work finding tasks in a

Re: [RFC] exit: do exit_task_work() before shooting off mm

2020-12-07 Thread Al Viro
On Thu, Dec 03, 2020 at 02:30:46AM +, Pavel Begunkov wrote: > Handle task works and lock it earlier before it starts killing off > task's resources like mm. io_uring makes use of it a lot and it'd > nicer to have all added task_work finding tasks in a consistent state. > > Signed-off-by:

[RFC] exit: do exit_task_work() before shooting off mm

2020-12-02 Thread Pavel Begunkov
Handle task works and lock it earlier before it starts killing off task's resources like mm. io_uring makes use of it a lot and it'd nicer to have all added task_work finding tasks in a consistent state. Signed-off-by: Pavel Begunkov --- Would it be correct? I clearly don't know all the exit