summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-06-01 00:02:29 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-06-01 00:02:29 +0000
commitef18a14190f3abb168a9f254a047a287bc9f7688 (patch)
tree9d128fdc8078f5797a55991b71be41495aca8a56 /sys/dev
parent1e85a0f7489f8fb5342a3c4e4ea90cbbabae6ee2 (diff)
drm: Wake up next in drm_read() chain if we are forced to putback the event
From Chris Wilson 00734a9e7329acc48e575f697ee4118998c1dac0 in linux 4.19.y/4.19.47 60b801999c48b6c1dd04e653a38e2e613664264e in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/drm_file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_file.c b/sys/dev/pci/drm/drm_file.c
index a1d65886647..f0ad7a9afee 100644
--- a/sys/dev/pci/drm/drm_file.c
+++ b/sys/dev/pci/drm/drm_file.c
@@ -575,6 +575,7 @@ put_back_event:
file_priv->event_space -= length;
list_add(&e->link, &file_priv->event_list);
spin_unlock_irq(&dev->event_lock);
+ wake_up_interruptible(&file_priv->event_wait);
break;
}