From patchwork Sun Sep 1 13:36:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13786443 Received: from outbound-ip191a.ess.barracuda.com (outbound-ip191a.ess.barracuda.com [209.222.82.58]) (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 6B195158DB2; Sun, 1 Sep 2024 13:37:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=209.222.82.58 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725197842; cv=fail; b=bPJQGlcg0JeSuhcCj4B2+91ik9OiGfgwDWP/bK8I+lPyHc3k3+KDMXslAGIITBCWqS4vexIOvJJjz4WQzDXkwlKDWxSSYE5SShEeACiOehxXep3031QJVdNNxkIZyiHmbqnNSr3MAv+JXqoSBUwPFUrRkf/dMS5OO4DPqIr9NRw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725197842; c=relaxed/simple; bh=3mCTEEHA68u9oTnOirv0IWKrlahncnp6c005tOkLWpY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hSSFvMBeZ6T3lb7akl16cl5YE1XiO7i+2oZOWhPURhAkP8NymKtS8SxQTKs06RVnFMESrwk+Y/FVP4maASTb0st8Nr7UmGwbX4F3CR1/6RNho0DDrQdz9ZJ6bVCQoAwqzfWKTHkXle7bLPsbcJG04uGymhl6WZPcbqGCN4w/8F0= 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=e1wAqozu; arc=fail smtp.client-ip=209.222.82.58 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="e1wAqozu" Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2048.outbound.protection.outlook.com [104.47.55.48]) by mx-outbound10-30.us-east-2a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 01 Sep 2024 13:37:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Aqyt8GxaMSDceryuJX2ivs606CXGdGbfNH0YEMqeby8MpWBF3l8aO9PLGahYvqLEnl2w8pKcqIbS48S40+x8cW/lrR1tujcDV6iENSnU3CK1AYOLZCn5ubVymz2UumWQNYDCXn+0tag0b9twvkDxFzw8KhYXeovjKevAybUldizrfqYBwfDB2h88jANOjy/zgjE6URJBEBi/lMp92vZY3/0HBlefO3anJDAVOPS3rO6PzR0J/NtMsu6r/3wKiyjjtvmceWNo0BfVlQT+wUvi6sg/pa5FhvLqgoFpJ4+S86UK7O0HIwaxdMzGQGKiPsRK5uIRkV5Y6FUvUnwdbd8Kpw== 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=QqxCiT+OsF5fNZGoDOBZ6cH6vumq+2fSSzT/25hideM=; b=DixlW17VPie83vU6mIWSsGNTgKmWlVH27zPcbM8TdvICvOqsYKbk3bR7cr5WbPIE8dN/fV56b3333PVJmjqVNc9KhAy+0VhGE+EabGrJzjomTZU9mlYG0lulgx8/jvCMX8IWMLgqr8w9GXtSTV/h0/XAnPSCA5Z7+qFsMEn+7UE+Wskct/XA+HHOVSuOHt4qcbiRg7lh3w2L0BKWfAPopCC3ooB/EG6AT5OZJQb874PNTAOJ7eGt5YmGYe9nqeEgdg0JBgNya/5XWC4eYvWjebHjRTc2Owf3lyP9vCbI+biDZhPZFkeWgQE/nbwwS7WHHFq+4DiLaXlnGggzzVkKyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 50.222.100.11) smtp.rcpttodomain=ddn.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=QqxCiT+OsF5fNZGoDOBZ6cH6vumq+2fSSzT/25hideM=; b=e1wAqozu27myqcrxPXILF92f9BxR944yNouO0Zs0YiDKxo0KGYE70AbR2bgLyFOJ582kb9n+Hq6/Vf2tHUW/9PHAZ+yfotvBd3/uf4um8BZL9lTdMHG0gqqIdyDD206D5z6BcokIqQiRa++8+C6jUKzEssBBC+PQtc/2pGOsfrM= Received: from MW4P221CA0017.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::22) by CO6PR19MB5356.namprd19.prod.outlook.com (2603:10b6:303:147::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Sun, 1 Sep 2024 13:37:01 +0000 Received: from MWH0EPF000A6731.namprd04.prod.outlook.com (2603:10b6:303:8b:cafe::bf) by MW4P221CA0017.outlook.office365.com (2603:10b6:303:8b::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23 via Frontend Transport; Sun, 1 Sep 2024 13:37:01 +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 MWH0EPF000A6731.mail.protection.outlook.com (10.167.249.23) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Sun, 1 Sep 2024 13:37:01 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 95951D0; Sun, 1 Sep 2024 13:37:00 +0000 (UTC) From: Bernd Schubert Date: Sun, 01 Sep 2024 15:36:57 +0200 Subject: [PATCH RFC v3 03/17] fuse: Move request bits Precedence: bulk X-Mailing-List: io-uring@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240901-b4-fuse-uring-rfcv3-without-mmap-v3-3-9207f7391444@ddn.com> References: <20240901-b4-fuse-uring-rfcv3-without-mmap-v3-0-9207f7391444@ddn.com> In-Reply-To: <20240901-b4-fuse-uring-rfcv3-without-mmap-v3-0-9207f7391444@ddn.com> To: Miklos Szeredi , Jens Axboe , Pavel Begunkov , bernd@fastmail.fm Cc: linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, Joanne Koong , Josef Bacik , Amir Goldstein , Bernd Schubert X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725197817; l=1214; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=3mCTEEHA68u9oTnOirv0IWKrlahncnp6c005tOkLWpY=; b=rumk+d/5/shsGZ+z3AwG94byRgiTSP+pfup293w+WYCeKc5Zj6JV8uV6oaeTBkv/JnuWEe+Mh jI4YZ1A6wGnB6CD3JOSTaa+gtaDb4m2zcFH5AmbNzAxeaqGoW1E8707 X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000A6731:EE_|CO6PR19MB5356:EE_ X-MS-Office365-Filtering-Correlation-Id: 1780a3f7-42f4-47ee-c4e9-08dcca8b28d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?e0tpOP+T/rTgyWWZ6dQ26VvlxnjriBk?= =?utf-8?q?a5gj+DlryOGncP6g+DZkc3rukNjkLs5N0lbQul3Eid+qlTuLPfNZibou252qHa0u4?= =?utf-8?q?urNK0NuG59wTS0+IfxVcqmz0G9Ok57/E/tPlYtb+BxHjtnwb6RcBcOgGtH9B+FS4f?= =?utf-8?q?LM3J+OXUVUjwEwPOCo71vDRifyJwWdPaCxDoHsZbFkMya0XSHWMh62NQF6Cx126wH?= =?utf-8?q?FbwCe0dKAKViDb5uV9130cXySD2ZCywDQCmNddrrQ9WFk4hA8pC/pR0F+HHnSX+o7?= =?utf-8?q?CDrCa2/T04Bv7CgvAo/BqaMTT9K7Zbp886MySk8nkVKVqvQ2gG8BlISOm6cwLY9MY?= =?utf-8?q?YIXADZVIZcegdqXU4don/aFFVM1kaWNVNhxosONVYhkXSqG1ErX5JTwF5egFN9Smo?= =?utf-8?q?B0EYdBVXkCtWrGG1EUkzcFnB7Ks3jCx6d5JtuLNmcJS58b6gX1jMN/HBUdY77ImqD?= =?utf-8?q?GUf/Wt7ind9OcdS5nW7oRB0GRbDVGdL9q75yuGLvyQNTV+LKnJuxGOMerEtVvaPHO?= =?utf-8?q?93og/lMu4b7tqZ1Uq9a5PXkVZpy621WJ/ApiSs+TUHnAdfDHaPVmFqvbAzKEWPLgN?= =?utf-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:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(36860700013)(376014)(82310400026)(1800799024);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: hycbEm6uUNAiXOuOsrVva1BcEmcp1mpVCkLRe2aNtgCQH2kWQPnzl/n7LF+I69GpjaDaJPT2HvZGmab74MwtFeRdrveCWkfr1GHJVgR5NpvgrSCieANIhkNzad3My5h6EjgkG3c+GCk5lQ65fjWSK8iHg6nOzbzaoooECFIoOabKEudJpyMF2XTTLuC4oNlF1c5ceXQsUcR3UyRAodaZ31BQqX33FN0GOKHf1F/NDPjuWRgNAGuMLU/kzuqcP2izo4Q8fh2Dozfw7jmTZG+jPPdBxiC7wU+EcOBSg9fZglQpYupXE7NT+E6wZQ7Hj9dkXyenutgv9KZaVS3T/CXL13e0cD9iCjk8kqDEwjjzPntwJADMXDQBeeaRxi/8GaUWjc+spwMYxFMT+vukF3juYPb7GeTzo2DjI6ZFQh+r8XYW9iJgTlhXyAW8K0ZFYs3M2m3gFQpfrejNTkC4P4ITHoFQIyqrAsRqrR6sDdC2ggz1ORDd7xbzBjWeQ9q3VbrIYWkYCbBGKdoSYYynBRrvGWG2c1G1MhBkmoqQeNBpoH6/M3TKDuRKAtGmjeMGTdTciQFsH0swWZfrmQg61jWRV6LaPG5CaTaioJLrWkafiXwMCD+A0R3KeMms2ZMWKlHMKqZO9WkdUu2akOeQjCgvXQ== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2024 13:37:01.2865 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1780a3f7-42f4-47ee-c4e9-08dcca8b28d0 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: MWH0EPF000A6731.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR19MB5356 X-BESS-ID: 1725197824-102590-12630-7736-1 X-BESS-VER: 2019.1_20240829.0001 X-BESS-Apparent-Source-IP: 104.47.55.48 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoaG5sZAVgZQ0CTJwtDMwCTZLD XFICnN2MLUKCU1MTXJPCXNIs3SINlCqTYWACZ/iBJBAAAA X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.258743 [from cloudscan10-236.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.50 BSF_RULE7568M META: Custom Rule 7568M 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_RULE7568M, BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 These are needed by dev_uring functions as well Signed-off-by: Bernd Schubert Reviewed-by: Josef Bacik --- fs/fuse/dev.c | 4 ---- fs/fuse/fuse_dev_i.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 9ac69fd2cead..dbc222f9b0f0 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -26,10 +26,6 @@ MODULE_ALIAS_MISCDEV(FUSE_MINOR); MODULE_ALIAS("devname:fuse"); -/* Ordinary requests have even IDs, while interrupts IDs are odd */ -#define FUSE_INT_REQ_BIT (1ULL << 0) -#define FUSE_REQ_ID_STEP (1ULL << 1) - static struct kmem_cache *fuse_req_cachep; static void fuse_request_init(struct fuse_mount *fm, struct fuse_req *req) diff --git a/fs/fuse/fuse_dev_i.h b/fs/fuse/fuse_dev_i.h index b38e67b3f889..6c506f040d5f 100644 --- a/fs/fuse/fuse_dev_i.h +++ b/fs/fuse/fuse_dev_i.h @@ -8,6 +8,10 @@ #include +/* Ordinary requests have even IDs, while interrupts IDs are odd */ +#define FUSE_INT_REQ_BIT (1ULL << 0) +#define FUSE_REQ_ID_STEP (1ULL << 1) + static inline struct fuse_dev *fuse_get_dev(struct file *file) { /*