From patchwork Mon Dec 9 14:56:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13899935 Received: from outbound-ip168b.ess.barracuda.com (outbound-ip168b.ess.barracuda.com [209.222.82.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71C7D1F0E57; Mon, 9 Dec 2024 14:57:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=209.222.82.102 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733756230; cv=fail; b=PcXGqM8VQ8kkqVFE46zlbD+1j8zdszyb85pEpg/wcVS6vywO6R6GuSwjlAzUJOqsPAJtMJ7C5k3RFKR74A05YvjrIDhiwP/v1VKiZoj97/v3c2IiD6CmqQFCSv6nA8bylOzaJ+lI5dOHKkydqGC9RRqEsmf71K5F5+lBlUEcGQs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733756230; c=relaxed/simple; bh=rY2K7hsReI4pxpACbowihLqcyGYPxjsrm3vYExzWdPY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UvXfADlHfwnHv2Ms7L0lbFF1my/iZpb1XbxbmTAWTeMvZE+IC8oq/NXXH66H8MCVZQvBJXdemN5EacgIg3YGB6VdmNqBSf8YAmilKZSXamER0jkGZPgH0wjkEfRYXYNw1LzFqP3cNs5tES1i65kU6IVBxPH7izS8bctNGq8yLbg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com; spf=pass smtp.mailfrom=ddn.com; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b=vtvVJORL; arc=fail smtp.client-ip=209.222.82.102 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ddn.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ddn.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ddn.com header.i=@ddn.com header.b="vtvVJORL" Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2170.outbound.protection.outlook.com [104.47.57.170]) by mx-outbound21-115.us-east-2b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 09 Dec 2024 14:57:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SgWIvT90Z0E8TY5yKw12DRx+HvToT34fqjW16UiHC36OsaJcKCs/cd4JTb18sN7kS6TTsn6NOw+oWYlePZv5XyeaOMPSjz5CKbCzhedqgipPsncVqRGxinFsbouzhyyq+v8JRUV822pEJ/uvY0LBMbt9fpa6C/2rRpFYJ9filpPSFDjZMYG+JeF38kcx7SaclyFXg9aVVPJIKATeyODSCuzX0m8/8zYyEHPsqbYCPbEPrM+Lr7VG3p5VtMa3rC75rac3iMMTjmQVJar39dpjZgBbD8mo0uyG506DiKV/W+5fV+7bWQ0jbFnVm80S3mW9B1hHahWyYmtRvYBrl++a3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HiqP9HlaxSiwtbtB7vX3vdAB0f3mcgYAOh3ghlZs1qU=; b=Vm1gCfsvG7x36/wVNHXL6uHmJRuFPijBgYz+a7nx2W8z826g7J2c1/hkFrA0HIHov7zhF2vO6Lw4cWOPiLZ3D+m/vOV15TxKR0ZxlZlCKS6z8BQFP8j6EeR4w3KJXb0ifRHD7MJCqw177o0PELF4oPdjJHT+8BvCqHLiAatQa+ykXEh84Ij/43thO55H+xsCIKWkij4zL4pkGeW4s5IX3ifY9vogCyVVVRTD7C3o/L4ry49J1bpBJ4uarpuEnPjCnJ+oyo2N3B6YL0IdNz4pH6dzgC0ofkgHWHZS1qL8p8rmrbu6yRNxmvySSHK0DPkY0PtiEJBsrde4V7YWNVSksg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 50.222.100.11) smtp.rcpttodomain=bsbernd.com smtp.mailfrom=ddn.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ddn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ddn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HiqP9HlaxSiwtbtB7vX3vdAB0f3mcgYAOh3ghlZs1qU=; b=vtvVJORL0PC0SGeQ7O4JKMRORg6+HVeDaDzhFDbFHQgQRHFjqYUHBoDZo97hTsyp5zYgFRW4G+uElv1BZAwZGljsrCnJRItndEaJuBmwD75c4+bvLCgMm9JFHYfnV4BwucH2QYt/zcvvU1HWAYuk0F7/c2wKmHt1t5X1z0mNnY4= Received: from CH0PR13CA0002.namprd13.prod.outlook.com (2603:10b6:610:b1::7) by CH2PR19MB3862.namprd19.prod.outlook.com (2603:10b6:610:91::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.18; Mon, 9 Dec 2024 14:56:56 +0000 Received: from CH2PEPF00000142.namprd02.prod.outlook.com (2603:10b6:610:b1:cafe::54) by CH0PR13CA0002.outlook.office365.com (2603:10b6:610:b1::7) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8251.11 via Frontend Transport; Mon, 9 Dec 2024 14:56:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 50.222.100.11) smtp.mailfrom=ddn.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=ddn.com; Received-SPF: Pass (protection.outlook.com: domain of ddn.com designates 50.222.100.11 as permitted sender) receiver=protection.outlook.com; client-ip=50.222.100.11; helo=uww-mrp-01.datadirectnet.com; pr=C Received: from uww-mrp-01.datadirectnet.com (50.222.100.11) by CH2PEPF00000142.mail.protection.outlook.com (10.167.244.75) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.7 via Frontend Transport; Mon, 9 Dec 2024 14:56:56 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 654304A; Mon, 9 Dec 2024 14:56:55 +0000 (UTC) From: Bernd Schubert Date: Mon, 09 Dec 2024 15:56:38 +0100 Subject: [PATCH v8 16/16] fuse: enable fuse-over-io-uring Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241209-fuse-uring-for-6-10-rfc4-v8-16-d9f9f2642be3@ddn.com> References: <20241209-fuse-uring-for-6-10-rfc4-v8-0-d9f9f2642be3@ddn.com> In-Reply-To: <20241209-fuse-uring-for-6-10-rfc4-v8-0-d9f9f2642be3@ddn.com> To: Miklos Szeredi Cc: Jens Axboe , Pavel Begunkov , linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, Joanne Koong , Josef Bacik , Amir Goldstein , Ming Lei , David Wei , bernd@bsbernd.com, Bernd Schubert X-Mailer: b4 0.15-dev-2a633 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733756199; l=1367; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=rY2K7hsReI4pxpACbowihLqcyGYPxjsrm3vYExzWdPY=; b=OpS9qp9dTpSHCz/lTlfeHgurW9A6/eb69ZT/1aFTU5f3U1dsqRdnJrzXRzw7garMfAILNy15Z iRk+zfO0tzaB9oO9KtEOelzOX91aLF/GVBR5IgQAshkNqfEh1vJelav X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF00000142:EE_|CH2PR19MB3862:EE_ X-MS-Office365-Filtering-Correlation-Id: ba8e1bdb-245c-459e-c7f1-08dd1861b9bf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|376014|7416014|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?rRxnn+s+F7W1ukAeROKqEBtmHnKd4qg?= =?utf-8?q?29NdAOnlXNCWj1x4BCUBmlSnqh1Ty2JZwo/Ovc/At0jON1unY0STI5uIiPYcjx6k0?= =?utf-8?q?fB6xRKNo1+b+gV4D0oAPahdt1GbxN9TjtI58nxzqiIwYVBKjo/9EHv85JnxIbfFFZ?= =?utf-8?q?b65idZk9kycq97xA/I6Q+GnwbAVk0zZvKRDja4mB4qCVieNMCkI+iL1zU83+7f+B2?= =?utf-8?q?Hm04mN9O910Hy7gZztMv7CojMwPwpDykDl0lHfPrkKYxLUGuVojn50M5eA99V+XfS?= =?utf-8?q?C/rN6DnDkEu1yOnnF5pBaZmCjjZWfsCOhM05ZcEfWL11uAKwntv8g8zXnceXXF2bV?= =?utf-8?q?fUugXfVIBweScoRxMdkWvSix22hRqm3cfHRXOPJEr2icjydZAryqeityYzr7F36Nr?= =?utf-8?q?uF0VQpDTJqfXtRhZA/hW+ig63kfult2NINlRBMAuGPp9heGSrUYgktChKyTeVdpeI?= =?utf-8?q?6wuyY6WQSGDUerQUJbc62vZ0v1gm6ldRr/vDhDvLmfnghdC+ibKsI/+npcm6X8wMC?= =?utf-8?q?d3gpQZMYBpS9opHB/E3aI3IWE02E8ZGdyqBBC1xoVJ4/aYeOcumFyhqIf+ZHxMQp7?= =?utf-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:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(376014)(7416014)(82310400026);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: yGT/jvnq49P3e9MTy8aE3+y5O8AuUBav6dgLu6jrL7WcsvNHnGTDO6hk7uGcn5aMStg2OdekutMMtiTVLhS64O83YzZu7xeT1VX511c23ytbl4I1TfE+c8kN7DPGOqPe2sB4gmOZQB6rpW9o4T4I08MxgF0kV9WMKb6nJ9xAHcUUauostHt0+YFoeWo1Lg/7/VyCG3rYL0tn4r5e/MrqHYro2MhmKuPborNXiEY0FS/NOPRsfmnJddDr1Sx2YFUTOQI6NYdSbaHnntMpMPP45TpetV+9rRpma6WA37rCycMCjrd1phTvZDZK6H8Ng66RHKdWQK6IreWYM5h7jK41VajrI8rsAwjO9+s87b8waBn9avc7YnVw6Qq7J9JT9Rk1J5vDqSsu3EtJcMpufynYkDq9S5AlEwKwGQXv2ghvmFaztgRrsPMxiK3/lh/UoqI7F5f02sxKu3rfmnmQdrJLzlY4NuexvMcXtUIKPj1918mAJORr3sglbWPkUr7u063tsCMMiYLq7npzJLBB1ckV7p8mnOLr6pN9ZoT5D7TbxQ/BR/HjEp/IUEmcVqeiz/ceozlx6TaickNgBYwUuxlKBAe6UeJWslQgmVHt3R/xzZv0ZkdVqHQ1FOpm1usB0VeBj/haZDeE1E5hHax8LFVyUg== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2024 14:56:56.2320 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ba8e1bdb-245c-459e-c7f1-08dd1861b9bf X-MS-Exchange-CrossTenant-Id: 753b6e26-6fd3-43e6-8248-3f1735d59bb4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=753b6e26-6fd3-43e6-8248-3f1735d59bb4;Ip=[50.222.100.11];Helo=[uww-mrp-01.datadirectnet.com] X-MS-Exchange-CrossTenant-AuthSource: CH2PEPF00000142.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR19MB3862 X-BESS-ID: 1733756220-105491-13364-2463-1 X-BESS-VER: 2019.1_20241126.2220 X-BESS-Apparent-Source-IP: 104.47.57.170 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVobGRhZAVgZQ0CQ5KcXQwNAk0S wpKdUgxdDU1NjYzCQp0SDZyDApOclUqTYWALAzpMdBAAAA X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260997 [from cloudscan14-25.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.50 BSF_RULE_7582B META: Custom Rule 7582B 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS124931 scores of KILL_LEVEL=7.0 tests=BSF_RULE_7582B, BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 All required parts are handled now, fuse-io-uring can be enabled. Signed-off-by: Bernd Schubert --- fs/fuse/dev.c | 3 +++ fs/fuse/dev_uring.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 8f8aaf74ee8dfbe8837f48811138d4ff99b44bba..e2b1d7d6ff67c77e029383419783c46cbdb53e78 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -2492,6 +2492,9 @@ const struct file_operations fuse_dev_operations = { .fasync = fuse_dev_fasync, .unlocked_ioctl = fuse_dev_ioctl, .compat_ioctl = compat_ptr_ioctl, +#ifdef CONFIG_FUSE_IO_URING + .uring_cmd = fuse_uring_cmd, +#endif }; EXPORT_SYMBOL_GPL(fuse_dev_operations); diff --git a/fs/fuse/dev_uring.c b/fs/fuse/dev_uring.c index be7eaf7cc569ff77f8ebdff323634b84ea0a3f63..183917edfc1afe41e806528f762951a0233dd66f 100644 --- a/fs/fuse/dev_uring.c +++ b/fs/fuse/dev_uring.c @@ -1083,8 +1083,7 @@ static int fuse_uring_register(struct io_uring_cmd *cmd, * Entry function from io_uring to handle the given passthrough command * (op cocde IORING_OP_URING_CMD) */ -int __maybe_unused fuse_uring_cmd(struct io_uring_cmd *cmd, - unsigned int issue_flags) +int fuse_uring_cmd(struct io_uring_cmd *cmd, unsigned int issue_flags) { struct fuse_dev *fud; struct fuse_conn *fc;