From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f68.google.com ([74.125.83.68]:46386 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751915AbeAFW6k (ORCPT ); Sat, 6 Jan 2018 17:58:40 -0500 From: Eric Biggers To: linux-fsdevel@vger.kernel.org, Al Viro Cc: kvm@vger.kernel.org, "Michael S . Tsirkin" , Jason Wang , Eric Biggers Subject: [PATCH 0/3] vhost: simplify use of eventfds Date: Sat, 6 Jan 2018 14:52:18 -0800 Message-Id: <20180106225221.1965-1-ebiggers3@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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(-) -- 2.15.1