[PATCH] drm: Fixup hang when unregistering drm dev with open_count 0

2017-04-11 Thread Jeffy Chen
My previous patch (c5d8fac2bf drm: Unplug drm device when unregistering it) calls drm_unplug_dev when unregistering drm dev. But if open_count is 0, the unplug will try to unregister the drm dev again and cause deadlock. Fix it by dropping drm_unplug_dev and use drm_device_set_plug_state directly

Re: [PATCH] drm: Fixup hang when unregistering drm dev with open_count 0

2017-04-11 Thread Sean Paul
On Wed, Apr 12, 2017 at 04:57:54AM +0800, Jeffy Chen wrote: > My previous patch (c5d8fac2bf drm: Unplug drm device when unregistering > it) calls drm_unplug_dev when unregistering drm dev. But if open_count > is 0, the unplug will try to unregister the drm dev again and cause > deadlock. > > Fix