From patchwork Wed Jul 8 22:26:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matthew Wilcox (Oracle)" X-Patchwork-Id: 11652849 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9902213B4 for ; Wed, 8 Jul 2020 22:26:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 76FF520772 for ; Wed, 8 Jul 2020 22:26:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="g6TPeBkK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725964AbgGHW0q (ORCPT ); Wed, 8 Jul 2020 18:26:46 -0400 Received: from casper.infradead.org ([90.155.50.34]:45746 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725903AbgGHW0q (ORCPT ); Wed, 8 Jul 2020 18:26:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=8AeY0VPt+1o51Qec2dxI2CAeMYSAsJ315806BrJZGyw=; b=g6TPeBkKcn1ohlx9tgjKe4hJ54 s2YXPrXUVnBDauWTRDpBfKhjeO29SJ3UwfZVyBg3DmY+0PQo56yGuziIUidiDExZhOlqGhYIFzdTo Dk43NT3mlud505xWoQcAqad/v4M8WsTS4LhY//pEsMjE3ZwmAIWImFbhlkFliFgK6mB2W0i/UhRY9 O2PaJUGzBvycUhg8WOndVaBj+ohvUzxT2g82aocVFb/COPZcxQh7X/h2B1A+d3okPK2GAsNpA0+ZX lG7fTF3wWG6UN474gRWySueK3xvz9Konu1vKwBq27SBPLHvl3WUSgsuPQUSSFqIbOfn6l+0mW0gCu kUfgMOAA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jtIWU-00060X-Kz; Wed, 08 Jul 2020 22:26:39 +0000 From: "Matthew Wilcox (Oracle)" To: Jens Axboe Cc: "Matthew Wilcox (Oracle)" , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-kernel@vger.kernel.org, Kanchan Joshi , Javier Gonzalez Subject: [PATCH 0/2] Remove kiocb ki_complete Date: Wed, 8 Jul 2020 23:26:34 +0100 Message-Id: <20200708222637.23046-1-willy@infradead.org> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Save a pointer in the kiocb by using a few bits in ki_flags to index a table of completion functions. Matthew Wilcox (Oracle) (2): fs: Abstract calling the kiocb completion function fs: Remove kiocb->ki_complete crypto/af_alg.c | 2 +- drivers/block/loop.c | 14 +++++++-- drivers/nvme/target/core.c | 10 +++++- drivers/nvme/target/io-cmd-file.c | 10 +++--- drivers/nvme/target/nvmet.h | 2 ++ drivers/target/target_core_file.c | 20 ++++++++++-- drivers/usb/gadget/function/f_fs.c | 2 +- drivers/usb/gadget/legacy/inode.c | 4 +-- fs/aio.c | 50 ++++++++++++++++-------------- fs/block_dev.c | 2 +- fs/ceph/file.c | 2 +- fs/cifs/file.c | 8 ++--- fs/direct-io.c | 2 +- fs/fuse/file.c | 2 +- fs/io_uring.c | 14 ++++++--- fs/iomap/direct-io.c | 3 +- fs/nfs/direct.c | 2 +- fs/ocfs2/file.c | 7 +++-- fs/overlayfs/file.c | 17 +++++++--- fs/read_write.c | 36 +++++++++++++++++++++ include/linux/fs.h | 23 ++++++++++++-- 21 files changed, 168 insertions(+), 64 deletions(-)