From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26291C433F5 for ; Fri, 1 Apr 2022 14:10:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346702AbiDAOMb (ORCPT ); Fri, 1 Apr 2022 10:12:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346700AbiDAOMb (ORCPT ); Fri, 1 Apr 2022 10:12:31 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71A7A18BCFA for ; Fri, 1 Apr 2022 07:10:41 -0700 (PDT) Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20220401141039epoutp03b2967be816012ae6b30eff8c088740f7~hyxdVHZog2245522455epoutp03d for ; Fri, 1 Apr 2022 14:10:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20220401141039epoutp03b2967be816012ae6b30eff8c088740f7~hyxdVHZog2245522455epoutp03d DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1648822239; bh=eQY981qQJsial6Teqout4wQZLQ5cka3Wr/hRVUCufOA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YZo4FFJw8YovEUcQezx780SzfVvPgckOUbU4wVvloc6ralaLSGK5uLb/VTmyhYrZf P9EBUWElZAJ6AKF9Fc38cc1QHlerFeUWWBk0GVPuA0XZ/neA9H4Kh7iFGbPggA2IKo i2jR4dmtVr43nc1t2rNop1R4AtoVhRauuYND7mZQ= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20220401141039epcas5p4c033b2a6d97051f930a18af88388896d~hyxcts6rt1430814308epcas5p4U; Fri, 1 Apr 2022 14:10:39 +0000 (GMT) Received: from epsmges5p1new.samsung.com (unknown [182.195.38.180]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4KVMWv63GJz4x9Pv; Fri, 1 Apr 2022 14:10:35 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 7F.82.06423.BD707426; Fri, 1 Apr 2022 23:10:35 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPA id 20220401110833epcas5p18e828a307a646cef5b7aa429be4396e0~hwSdFLjZ81893718937epcas5p1e; Fri, 1 Apr 2022 11:08:32 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220401110832epsmtrp2bb5847e90b6723d87d3c5e9eb342f9ec~hwSdDiLxq2799827998epsmtrp2n; Fri, 1 Apr 2022 11:08:32 +0000 (GMT) X-AuditID: b6c32a49-b13ff70000001917-e1-624707db139c Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 46.49.03370.03DD6426; Fri, 1 Apr 2022 20:08:32 +0900 (KST) Received: from localhost.localdomain (unknown [107.110.206.5]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220401110831epsmtip12236795323fb5dc084d00fb83e8e014e~hwSbXq0uw0869908699epsmtip10; Fri, 1 Apr 2022 11:08:31 +0000 (GMT) From: Kanchan Joshi To: axboe@kernel.dk, hch@lst.de Cc: io-uring@vger.kernel.org, linux-nvme@lists.infradead.org, asml.silence@gmail.com, ming.lei@redhat.com, mcgrof@kernel.org, pankydev8@gmail.com, javier@javigon.com, joshiiitr@gmail.com, anuj20.g@samsung.com Subject: [RFC 2/5] fs: add file_operations->async_cmd() Date: Fri, 1 Apr 2022 16:33:07 +0530 Message-Id: <20220401110310.611869-3-joshi.k@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220401110310.611869-1-joshi.k@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrCJsWRmVeSWpSXmKPExsWy7bCmhu5tdvckgwlNhhZNE/4yW8xZtY3R YvXdfjaLlauPMlm8az3HYtF5+gKTxfm3h5ks5i97ym5xY8JTRotDk5uZLNbcfMriwO2xc9Zd do/mBXdYPC6fLfXYtKqTzWPzknqP3Tcb2Dze77vK5tG3ZRWjx+dNcgGcUdk2GamJKalFCql5 yfkpmXnptkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4Bum6ZOUDHKimUJeaUAoUCEouLlfTt bIryS0tSFTLyi0tslVILUnIKTAr0ihNzi0vz0vXyUkusDA0MjEyBChOyM343H2IsmMReMbf5 F0sD4xPWLkZODgkBE4kdL26xdDFycQgJ7GaUOLJiDjtIQkjgE6PEmg9REInPjBIzZ9+A61jQ /p8dIrGLUeLap9uMEB1AVXMnCHUxcnCwCWhKXJhcChIWEZCX+HJ7LdgGZoFrjBKPXx1iA0kI C5hLPD6wCmwoi4CqxKu3k8Dm8ApYShzo2MgOsUxeYual72A2p4CVxKF/G9kgagQlTs58wgJi MwPVNG+dzQyyQEJgIYfEmtvvmSCaXSRO3n8BNUhY4tXxLVC2lMTnd3vZIOxkidbtl9lBjpYQ KJFYskAdImwvcXHPXyaQMDPQL+t36UOEZSWmnlrHBLGWT6L39xOoTbwSO+bB2IoS9yY9hYaV uMTDGUugbA+J5u7NrJBw62WUaJ/5jmkCo8IsJO/MQvLOLITVCxiZVzFKphYU56anFpsWGOal lsPjODk/dxMjOPlqee5gvPvgg94hRiYOxkOMEhzMSiK8V2Ndk4R4UxIrq1K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tSi2CyTBycUg1Mk22fVGzd0GIh9GZtdKSxi9e+0/e1H881c6+NcYmbVbBH PvHQt2kVb0Un3Mt0NHnpXLzr64vfR4srg89nbXgpssLdvHXm3qZb9UWaDxeufXciqFtDemWI 3O7NPJv6atfU/azZ8Hr30t+/i6RWfQl+0Vcuc+mTySKWO/auOof6eHVtX0Yky1ZU/HWpNupx fGvXP//fYVOb7vQfYpcmT3x1knfR/Sy7P3ql31dk3T+X0Bl0J/nz/ge72i5cam8/I7A7QYCr lnHn61M7+Iuc1U6enbo4+1OGe07Y9kaGFSqTb7BFZcyetnrfgk1ufNtjnxzPmnyzxotTv/DC VsXix7U/VxW8s/krul39errihEl/jiqxFGckGmoxFxUnAgBoV/QEAAMAAA== X-CMS-MailID: 20220401110833epcas5p18e828a307a646cef5b7aa429be4396e0 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20220401110833epcas5p18e828a307a646cef5b7aa429be4396e0 References: <20220401110310.611869-1-joshi.k@samsung.com> Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org From: Jens Axboe This is a file private handler, similar to ioctls but hopefully a lot more sane and useful. Signed-off-by: Jens Axboe --- include/linux/fs.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/fs.h b/include/linux/fs.h index e2d892b201b0..a32f83b70435 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -1977,6 +1977,7 @@ struct dir_context { #define REMAP_FILE_ADVISORY (REMAP_FILE_CAN_SHORTEN) struct iov_iter; +struct io_uring_cmd; struct file_operations { struct module *owner; @@ -2019,6 +2020,7 @@ struct file_operations { struct file *file_out, loff_t pos_out, loff_t len, unsigned int remap_flags); int (*fadvise)(struct file *, loff_t, loff_t, int); + int (*async_cmd)(struct io_uring_cmd *ioucmd); } __randomize_layout; struct inode_operations { -- 2.25.1