Re: [PATCH] drm: Fix possible race conditions while unplugging DRM device

2018-05-31 Thread Oleksandr Andrushchenko
On 05/29/2018 10:49 AM, Daniel Vetter wrote: On Tue, May 29, 2018 at 10:09:57AM +0300, Oleksandr Andrushchenko wrote: On 05/29/2018 10:02 AM, Daniel Vetter wrote: On Tue, May 22, 2018 at 05:13:04PM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko When unplugging a hotplugg

Re: [PATCH] drm: Fix possible race conditions while unplugging DRM device

2018-05-29 Thread Daniel Vetter
On Tue, May 29, 2018 at 10:09:57AM +0300, Oleksandr Andrushchenko wrote: > On 05/29/2018 10:02 AM, Daniel Vetter wrote: > > On Tue, May 22, 2018 at 05:13:04PM +0300, Oleksandr Andrushchenko wrote: > > > From: Oleksandr Andrushchenko > > > > > > When unplugging a hotpluggable DRM device we first u

Re: [PATCH] drm: Fix possible race conditions while unplugging DRM device

2018-05-29 Thread Oleksandr Andrushchenko
On 05/29/2018 10:02 AM, Daniel Vetter wrote: On Tue, May 22, 2018 at 05:13:04PM +0300, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko When unplugging a hotpluggable DRM device we first unregister it with drm_dev_unregister and then set drm_device.unplugged flag which is used to m

Re: [PATCH] drm: Fix possible race conditions while unplugging DRM device

2018-05-29 Thread Daniel Vetter
On Tue, May 22, 2018 at 05:13:04PM +0300, Oleksandr Andrushchenko wrote: > From: Oleksandr Andrushchenko > > When unplugging a hotpluggable DRM device we first unregister it > with drm_dev_unregister and then set drm_device.unplugged flag which > is used to mark device critical sections with drm_

Re: [PATCH] drm: Fix possible race conditions while unplugging DRM device

2018-05-28 Thread Oleksandr Andrushchenko
ping On 05/22/2018 05:13 PM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko When unplugging a hotpluggable DRM device we first unregister it with drm_dev_unregister and then set drm_device.unplugged flag which is used to mark device critical sections with drm_dev_enter()/ drm_dev

[PATCH] drm: Fix possible race conditions while unplugging DRM device

2018-05-22 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko When unplugging a hotpluggable DRM device we first unregister it with drm_dev_unregister and then set drm_device.unplugged flag which is used to mark device critical sections with drm_dev_enter()/ drm_dev_exit() preventing access to device resources that are not avai