From: Yejune Deng <yejune.deng@gmail.com>
To: shuo.a.liu@intel.com
Cc: linux-kernel@vger.kernel.org, yejune.deng@gmail.com
Subject: [PATCH] virt: acrn: Use vfs_poll() instead of f_op->poll()
Date: Sat, 20 Feb 2021 22:53:51 +0800 [thread overview]
Message-ID: <20210220145351.14464-1-yejune.deng@gmail.com> (raw)
Use vfs_poll() is a more advanced function in acrn_irqfd_assign().
as the same time, modify the definition of events.
Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
---
drivers/virt/acrn/irqfd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/virt/acrn/irqfd.c b/drivers/virt/acrn/irqfd.c
index a8766d528e29..98d6e9b18f9e 100644
--- a/drivers/virt/acrn/irqfd.c
+++ b/drivers/virt/acrn/irqfd.c
@@ -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);
--
2.29.0
next reply other threads:[~2021-02-20 14:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-20 14:53 Yejune Deng [this message]
2021-02-21 1:50 ` [PATCH] virt: acrn: Use vfs_poll() instead of f_op->poll() Liu, Shuo A
2021-02-21 7:54 ` Greg Kroah-Hartman
2021-02-21 13:11 ` Shuo A Liu
-- strict thread matches above, loose matches on Subject: below --
2021-02-19 9:26 Yejune Deng
2021-02-20 9:48 ` Shuo A Liu
2021-02-20 11:00 ` Yejune Deng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210220145351.14464-1-yejune.deng@gmail.com \
--to=yejune.deng@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=shuo.a.liu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).