Re: drm: avoid possible deadlock in kthread_stop

2020-10-17 Thread Mark Kettenis
> Date: Sat, 17 Oct 2020 16:16:01 +0200 > From: Sebastien Marie > > On Wed, Oct 14, 2020 at 08:58:04PM +0200, Mark Kettenis wrote: > > > Date: Thu, 1 Oct 2020 09:09:50 +0200 > > > From: Sebastien Marie > > > > > > Hi, > > > > > > Currently, when a process is calling kthread_stop(), it sets a

Re: drm: avoid possible deadlock in kthread_stop

2020-10-17 Thread Sebastien Marie
On Wed, Oct 14, 2020 at 08:58:04PM +0200, Mark Kettenis wrote: > > Date: Thu, 1 Oct 2020 09:09:50 +0200 > > From: Sebastien Marie > > > > Hi, > > > > Currently, when a process is calling kthread_stop(), it sets a flag > > asking the thread to stop, and enters in sleep mode, but the code > >

Re: drm: avoid possible deadlock in kthread_stop

2020-10-14 Thread Mark Kettenis
> Date: Thu, 1 Oct 2020 09:09:50 +0200 > From: Sebastien Marie > > Hi, > > Currently, when a process is calling kthread_stop(), it sets a flag > asking the thread to stop, and enters in sleep mode, but the code > doing the stop doesn't wakeup the caller of kthread_stop(). > > The thread should

drm: avoid possible deadlock in kthread_stop

2020-10-01 Thread Sebastien Marie
Hi, Currently, when a process is calling kthread_stop(), it sets a flag asking the thread to stop, and enters in sleep mode, but the code doing the stop doesn't wakeup the caller of kthread_stop(). The thread should also be unparked as else it will not seen the KTHREAD_SHOULDSTOP flag. it