Skip to content

Commit a526641

Browse files
committed
xen: privcmd: Don't mark eventfd waiter as EXCLUSIVE
Don't set WQ_FLAG_EXCLUSIVE when adding an irqfd to a wait queue, as irqfd_wakeup() unconditionally returns '0', i.e. doesn't actually operate in exclusive mode. Note, the use of WQ_FLAG_PRIORITY is also dubious, but that's a problem for another day. Tested-by: K Prateek Nayak <kprateek.nayak@amd.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20250522235223.3178519-8-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 867347b commit a526641

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/xen/privcmd.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,6 @@ irqfd_poll_func(struct file *file, wait_queue_head_t *wqh, poll_table *pt)
957957
struct privcmd_kernel_irqfd *kirqfd =
958958
container_of(pt, struct privcmd_kernel_irqfd, pt);
959959

960-
kirqfd->wait.flags |= WQ_FLAG_EXCLUSIVE;
961960
add_wait_queue_priority(wqh, &kirqfd->wait);
962961
}
963962

0 commit comments

Comments
 (0)