Skip to content

vhost: simplify use of eventfds

Eric Biggers kvm linux-fsdevel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vhost: don't hold onto file pointer for VHOST_SET_VRING_CALLdrivers/vhost/vhost.c drivers/vhost/vhost.h+5 -160 replies
2/3vhost: don't hold onto file pointer for VHOST_SET_VRING_ERRdrivers/vhost/vhost.c drivers/vhost/vhost.h+4 -150 replies
3/3vhost: don't hold onto file pointer for VHOST_SET_LOG_FDdrivers/vhost/vhost.c drivers/vhost/vhost.h+5 -200 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJason Wang
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] vhost: simplify use of eventfds

This series updates some of the vhost ioctls to grab a reference to just the eventfd_ctx instead of to both the eventfd_ctx and eventfd file, since only the eventfd_ctx is needed. This simplifies the code and eliminates all but one user of eventfd_fget().

Eric Biggers (3):
vhost: don't hold onto file pointer for VHOST_SET_VRING_CALL
vhost: don't hold onto file pointer for VHOST_SET_VRING_ERR
vhost: don't hold onto file pointer for VHOST_SET_LOG_FD

 drivers/vhost/vhost.c | 62 ++++++++++++---------------------------------------
 drivers/vhost/vhost.h |  3 ---
 2 files changed, 14 insertions(+), 51 deletions(-)
Signature · 1 line
2.15.1