diff options
author | Christoph Hellwig <hch@lst.de> | 2018-03-05 10:26:05 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-05-26 03:16:44 -0400 |
commit | 9965ed174e7d38896e5d2582159d8ef31ecd4cb5 (patch) | |
tree | 955bfa805fff87c169a4814deaf311b90cca84b2 /virt | |
parent | 6e8b704df58407aad7607053cb1b5ead4ac4a0bc (diff) |
fs: add new vfs_poll and file_can_poll helpers
These abstract out calls to the poll method in preparation for changes
in how we poll.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/eventfd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index 6e865e8b5b10..90d30fbe95ae 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c | |||
@@ -397,7 +397,7 @@ kvm_irqfd_assign(struct kvm *kvm, struct kvm_irqfd *args) | |||
397 | * Check if there was an event already pending on the eventfd | 397 | * Check if there was an event already pending on the eventfd |
398 | * before we registered, and trigger it as if we didn't miss it. | 398 | * before we registered, and trigger it as if we didn't miss it. |
399 | */ | 399 | */ |
400 | events = f.file->f_op->poll(f.file, &irqfd->pt); | 400 | events = vfs_poll(f.file, &irqfd->pt); |
401 | 401 | ||
402 | if (events & EPOLLIN) | 402 | if (events & EPOLLIN) |
403 | schedule_work(&irqfd->inject); | 403 | schedule_work(&irqfd->inject); |