diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2024-06-18 12:42:28 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2024-07-02 13:23:39 +0300 |
commit | 1c682593096a487fd9aebc079a307ff7a6d054a3 (patch) | |
tree | deb70c9a768d8067d287ea18193544430317aac1 /scripts/gdb/linux/lists.py | |
parent | 7cd23c1817b8f9df61dac67848d9593b1ca8882f (diff) | |
download | linux-1c682593096a487fd9aebc079a307ff7a6d054a3.tar.xz |
xen: privcmd: Switch from mutex to spinlock for irqfds
irqfd_wakeup() gets EPOLLHUP, when it is called by
eventfd_release() by way of wake_up_poll(&ctx->wqh, EPOLLHUP), which
gets called under spin_lock_irqsave(). We can't use a mutex here as it
will lead to a deadlock.
Fix it by switching over to a spin lock.
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/a66d7a7a9001424d432f52a9fc3931a1f345464f.1718703669.git.viresh.kumar@linaro.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions