Skip to contentSkip to conversation

virt: acrn: Use vfs_poll() instead of f_op->poll()

PATCH RESEND New [email protected] 1 participant 1 message Feb 21, 2021 Acrn hypervisor service module

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 virt: acrn: Use vfs_poll() instead of f_op->poll()

From: Yejune Deng <[email protected]>

Use a more advanced function vfs_poll() in acrn_irqfd_assign(). At the same time, modify the definition of events.

---
 drivers/virt/acrn/irqfd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/virt/acrn/irqfd.c +2 -2
index a8766d528e29..98d6e9b18f9e 100644
@@ -112,7 +112,7 @@ static int acrn_irqfd_assign(struct acrn_vm *vm, struct acrn_irqfd *args)
 {
 	struct eventfd_ctx *eventfd = NULL;
 	struct hsm_irqfd *irqfd, *tmp;
-	unsigned int events;
+	__poll_t events;
 	struct fd f;
 	int ret = 0;
 
@@ -158,7 +158,7 @@ static int acrn_irqfd_assign(struct acrn_vm *vm, struct acrn_irqfd *args)
 	mutex_unlock(&vm->irqfds_lock);
 
 	/* Check the pending event in this stage */
-	events = f.file->f_op->poll(f.file, &irqfd->pt);
+	events = vfs_poll(f.file, &irqfd->pt);
 
 	if (events & POLLIN)
 		acrn_irqfd_inject(irqfd);
Signature · 1 line
2.28.0