virt: acrn: Use vfs_poll() instead of f_op->poll()
PATCH 1/1 virt: acrn: Use vfs_poll() instead of f_op->poll()
Use vfs_poll() is a more advanced function in acrn_irqfd_assign(). as 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
@@ -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.29.0
Quoted 4 lines · Yejune Deng
Use
vfs_poll()is a more advanced function inacrn_irqfd_assign(). as the same time, modify the definition of events.Signed-off-by Yejune Deng <[email protected]>
Thanks for the update.
Hi Greg,
Need i do more work on this patch?
Or you will review and apply on your tree directly?
Thanks
shuo
Quoted 27 lines
--- drivers/virt/acrn/irqfd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/virt/acrn/irqfd.c +2
-2@@ -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);
Quoted 6 lines · Shuo A
Quoted 3 lines · Yejune Deng
Use
vfs_poll()is a more advanced function inacrn_irqfd_assign(). as the same time, modify the definition of events.
Quoted 8 lines
Quoted 1 line
Signed-off-by Yejune Deng <[email protected]>Thanks for the update.
Reviewed-by Shuo Liu <[email protected]>Hi Greg,
Need i do more work on this patch?
Or you will review and apply on your tree directly?
Please resend it to me with your signed-off-by on it.
thanks,
greg k-h
Quoted 9 lines · Greg Kroah-Hartman
Quoted 8 lines · Shuo A
Quoted 4 lines · Yejune Deng
Use
vfs_poll()is a more advanced function inacrn_irqfd_assign(). as the same time, modify the definition of events.Signed-off-by Yejune Deng <[email protected]>
Quoted 8 lines
Quoted 6 lines
Thanks for the update.
Reviewed-by Shuo Liu <[email protected]>Hi Greg,
Need i do more work on this patch?
Or you will review and apply on your tree directly?Please resend it to me with your signed-off-by on it.
OK.