Skip to content

Commit dcf9625

Browse files
YajunDenggregkh
authored andcommitted
virt: acrn: Use vfs_poll() instead of f_op->poll()
Use a more advanced function vfs_poll() in acrn_irqfd_assign(). At the same time, modify the definition of events. Signed-off-by: Yejune Deng <yejune.deng@gmail.com> Signed-off-by: Shuo Liu <shuo.a.liu@intel.com> Link: https://lore.kernel.org/r/20210221133306.33530-1-shuo.a.liu@intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e54b788 commit dcf9625

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/virt/acrn/irqfd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static int acrn_irqfd_assign(struct acrn_vm *vm, struct acrn_irqfd *args)
112112
{
113113
struct eventfd_ctx *eventfd = NULL;
114114
struct hsm_irqfd *irqfd, *tmp;
115-
unsigned int events;
115+
__poll_t events;
116116
struct fd f;
117117
int ret = 0;
118118

@@ -158,7 +158,7 @@ static int acrn_irqfd_assign(struct acrn_vm *vm, struct acrn_irqfd *args)
158158
mutex_unlock(&vm->irqfds_lock);
159159

160160
/* Check the pending event in this stage */
161-
events = f.file->f_op->poll(f.file, &irqfd->pt);
161+
events = vfs_poll(f.file, &irqfd->pt);
162162

163163
if (events & POLLIN)
164164
acrn_irqfd_inject(irqfd);

0 commit comments

Comments
 (0)