On Tue, Sep 05, 2023 at 05:42:30PM -0400, Peter Xu wrote: > Allows the poll enqueue function to pass over a flag into it. > > Signed-off-by: Peter Xu <peterx@xxxxxxxxxx> A fixup for this patch (should fix all syzbot errors): ===8<=== >From ba55ee0539a7a80b98e7a5e3942c0ee8cabe5f73 Mon Sep 17 00:00:00 2001 From: Peter Xu <peterx@xxxxxxxxxx> Date: Tue, 5 Sep 2023 20:05:33 -0400 Subject: [PATCH] fixup! poll: Add a poll_flags for poll_queue_proc() Signed-off-by: Peter Xu <peterx@xxxxxxxxxx> --- drivers/vhost/vhost.c | 4 ++-- drivers/xen/privcmd.c | 3 ++- net/9p/trans_fd.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 02caad721843..00813db53ff1 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -152,7 +152,7 @@ static void vhost_flush_work(struct vhost_work *work) } static void vhost_poll_func(struct file *file, wait_queue_head_t *wqh, - poll_table *pt) + poll_table *pt, poll_flags flags) { struct vhost_poll *poll; @@ -162,7 +162,7 @@ static void vhost_poll_func(struct file *file, wait_queue_head_t *wqh, } static int vhost_poll_wakeup(wait_queue_entry_t *wait, unsigned mode, int sync, - void *key, poll_flags flags) + void *key) { struct vhost_poll *poll = container_of(wait, struct vhost_poll, wait); struct vhost_work *work = &poll->work; diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index f00ad5f5f1d4..43e65186f25d 100644 --- a/drivers/xen/privcmd.c +++ b/drivers/xen/privcmd.c @@ -914,7 +914,8 @@ irqfd_wakeup(wait_queue_entry_t *wait, unsigned int mode, int sync, void *key) } static void -irqfd_poll_func(struct file *file, wait_queue_head_t *wqh, poll_table *pt) +irqfd_poll_func(struct file *file, wait_queue_head_t *wqh, poll_table *pt, + poll_flags flags) { struct privcmd_kernel_irqfd *kirqfd = container_of(pt, struct privcmd_kernel_irqfd, pt); diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index 91f9f474ab01..2912c4b086a2 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c @@ -545,6 +545,7 @@ static int p9_pollwake(wait_queue_entry_t *wait, unsigned int mode, int sync, vo * @filp: file pointer being polled * @wait_address: wait_q to block on * @p: poll state + * @flags: poll flags * * called by files poll operation to add v9fs-poll task to files wait queue */ -- 2.41.0 ===8<=== Thanks, -- Peter Xu