From patchwork Mon Dec 9 14:56:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13899924 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 A04E51BEF9B; Mon, 9 Dec 2024 14:56:57 +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=1733756221; cv=fail; b=PFzkJxx1hUTs0qd6tCCVrfDQZrMdBfZ5ua7nh5gwv0gcWMW8NomN8oQ0cXDpgMx+4Ft4urLAPdn7i2DyACtfTuYlMUVnW9TptR2rcmGKYOhTW2XrvcBny1ZAQb0ueiQ8hAjioAYR58WpKzJmbAi7UA/PsfA+waL+P0amr97Lq/U= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733756221; c=relaxed/simple; bh=bH7AXbAgM9O8WxYv19f8qiXoKWtYqGZmQxByq03RmGI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=FP/jyKAsdrHzOXIm9BNEgS/Xe01X52/JMSHe9SvA/rQnLBChfHK09W9VCBKFo3yV29N/ueuLeBij2dza5jQtVOxGU5evjrBEAUCV9ekGHVJaUVYK/3gY9nkZrTKoaGq9AMBNO1WbhaZ4AdS2CEY7nBEeyGtNPRrd0rgpZOZY7g8= 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=Ph5F3w4Y; 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="Ph5F3w4Y" Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2049.outbound.protection.outlook.com [104.47.56.49]) by mx-outbound8-209.us-east-2a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 09 Dec 2024 14:56:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CWPMvzCdLvmYNgVeZRTapfLkkOPT6joj4sd4Jx1FnZ5JafoMUy+qaHaylqJ7N9yR+IDySPQoffc93Yz05c+QSbw10gMhqpEugyyUVMOPwTdz+tIvrKq+wGUkiH7KLOXBwiQKvfS9QG6NPr7R2S3+elx6w5SJgMN5AiW0ga+Tej0Aphm0q2txP26DY6x8rk1eLur1weMx9NC7QOWx9dgTudAJDAXuOk+6oLsaQciHm7fe1xZhtFbfzBlible1XUEXK5P8U2j1peAJD2PXT1s2Pb2GQjNkDudNXjseEg9TeIjv1hBhSrKl8euaK2aozjGcBrVl4ENpXZ4vWBSQ3bxCRQ== 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=jJz3+THbXTIKY43167MS2efTc2Qn1MdwFPpXT/QQ29o=; b=O9kwO2xl5Q6ASmQchr2Eamt53GyBEkjFkjMCaC/hCopQqw/8E2Ng/GkVpxQQFepro8uaGoUJ6Q1h06Xzy6uW15+e1kOI3RvRPS6uvYPiTI+vR3gIiRJO28DUd31rUvYK2hGVmouNQpeYO4bOXffZZgBC0HK8GN2OKsNvOX9aRkOExnapYJRsz5aah0AZ1fr6d7W67G6JtmqTwfDoRHiaqZrLGyCsaebwh4Xbw8EIE8Q1gHisW4jo35r73u+9y+x/UedZgAYgCA77Mpge8e85A3PP/loM2ryjnCoIMjrEn9I9Cbltk5OixhgxsF2MXoZ4CEvi41j1k2u7X5nQniIGMw== 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=jJz3+THbXTIKY43167MS2efTc2Qn1MdwFPpXT/QQ29o=; b=Ph5F3w4YIXJhyZtLs+TKe7nofORc6jxCfPNmWXrAzNFCMmvgbqD2KwMwT5YJdkExAZBtFoLeMu7p3EJdhQ3+Ts/xl5xS/KRV/j30NsQmlyM4K3Yc6mU1fG/SW/A6WkA+Q0YwSywdqP2rMETt+uiJQHs8TVlJQWhk2s0ObMRediM= Received: from PH0PR07CA0025.namprd07.prod.outlook.com (2603:10b6:510:5::30) by IA1PR19MB7711.namprd19.prod.outlook.com (2603:10b6:208:3d9::8) 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:44 +0000 Received: from MWH0EPF000A6730.namprd04.prod.outlook.com (2603:10b6:510:5:cafe::f6) by PH0PR07CA0025.outlook.office365.com (2603:10b6:510:5::30) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8230.13 via Frontend Transport; Mon, 9 Dec 2024 14:56:43 +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 MWH0EPF000A6730.mail.protection.outlook.com (10.167.249.22) 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:43 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id AD10855; Mon, 9 Dec 2024 14:56:42 +0000 (UTC) From: Bernd Schubert Date: Mon, 09 Dec 2024 15:56:25 +0100 Subject: [PATCH v8 03/16] 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: <20241209-fuse-uring-for-6-10-rfc4-v8-3-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=1370; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=bH7AXbAgM9O8WxYv19f8qiXoKWtYqGZmQxByq03RmGI=; b=F7xuOfHmwR+qLdrcRBAoUZweAVgpFW1TMCRn7IoI0fg9iftMrlThMQWU/7YmNQc4Go9B8SpGO gmk+pXGyVLdCZRZUP7Twj5K9BP02WMKiiVP6muZr+0slV7Z5YPKzFyU X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000A6730:EE_|IA1PR19MB7711:EE_ X-MS-Office365-Filtering-Correlation-Id: 562dd1df-65c0-4709-5817-08dd1861b21b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|7416014|376014|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?j/h3R/Y1QL0h4eGaJjdofDqu+PoCCwO?= =?utf-8?q?gJ3GuBOE8zBXalpinBBHaWT1fULEbRaiszRru0xKe53ysLKyhmOjG9eHTkM34HJO5?= =?utf-8?q?RNbyN4k3ELlkwsjFG+7q7yJyLdJq0qfZR/ZWCuwp7qZLm5N0W7CPRt1Zase+6zUub?= =?utf-8?q?tTywRZckjuFomn1X1mpecAJMgWijNtEtajfsjy37GCDOd/O2SAYCCPi5gOCOjUW25?= =?utf-8?q?OcWkQafeYNf351YlfM29F88LAh6WFWPn99myvpv6gCB4Zx7x9BvbQ5DXmkbRCNECj?= =?utf-8?q?ox3qAUFIURTNRpS0c55k3K8Zq1BQPb1SX+ixtwctWaDPTNa20JNG8wumvZYvsi1qd?= =?utf-8?q?N639hI28N4ayd+wZ+oCSXhZI7d3DFJIHDZvWKbcVWm/mJ7Ktl8q1bN6gjIdrQ/xtK?= =?utf-8?q?uG+ndOKYY3dSW5XhaoqzViU+2S4sKTCqBXetbKDQs157TVOrWrXT+tnPaoWCp3ZLq?= =?utf-8?q?8FrnTAs7rRY7layEA7zBn4pOt0OduwQ5WXawhqwR1STkWTxCFbw0OuRvowi8Vey8q?= =?utf-8?q?6LONmGERut40aeAsyC6VRdgjuiY3ugOBU01ZixUJcDK6m6hZ/apn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G:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(7416014)(376014)(82310400026);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: qzLNEFVjFF8gFCiuqACK0eJEk9iMpPzo+BFfDDdybtDyBXcTFXXg26/UjnGvGMflRbkS+4MB9kM+BNG/L+gk1ShMxPHkl+2gf/uAYL9Rx1QTfGhMbVdZRCLACFbiH9yFdy6Ch1kMaidCzJTJHo1SCi1cP2I+uy0IpxV6RiUxfb1q2pbXz+QieIKG1xEFL3Kjx5J1jKgA2wCl+eljhk30MEjJy4PBrAKE870U9tx5S/uEFRezyJkJDsgnl0LUURS0tRyXZ1Q1Dj/33ZGhkb5+oAu5zsplJvmQifcUhJbHZPDZAeM663U3qtU7zpoFzfqO3GKrOx56hL82+iBi3ZcoOWng5mMIxYq/hSaYwZt7UJmYM0yVXzAd5H7lVRI6zs7x0OjUswuim24oXoFeK0KU8KshTZinKy+iLviilwTiItQ8JYhoRiEn1YvqvJ3fSbH0GG+bv3kv7jvnyPGY0QVvsl3dzSo0Oadaww81bU5JhDZi8uylpxHdh1tuYKknDIYHhQkXjIuk1jWgbo8Ji/oVpFtdbrDn+5HGwgPRlb4wD6hmGunFj5DRXvRpqQxppDIRp/vHNLzqfMH19SBriMWZts4BmsJQM1uTGgVmg1ZWmuLov/yKqCvIDMqV60zlPtfaOC7+EHtNDTV5wtXCAcd5VQ== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2024 14:56:43.4571 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 562dd1df-65c0-4709-5817-08dd1861b21b 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: MWH0EPF000A6730.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR19MB7711 X-BESS-ID: 1733756206-102257-13468-1819-1 X-BESS-VER: 2019.1_20241126.2220 X-BESS-Apparent-Source-IP: 104.47.56.49 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVobGRhZAVgZQ0DLFOMnAwiQ5Mc XMyNjIMsnEwjA5MTE1ydIgycLEKC1JqTYWAJk6n8ZBAAAA X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260997 [from cloudscan22-239.us-east-2b.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 fuse-over-io-uring. Signed-off-by: Bernd Schubert Reviewed-by: Josef Bacik Reviewed-by: Joanne Koong --- 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 3db3282bdac4613788ec8d6d29bfc56241086609..4f8825de9e05b9ffd291ac5bff747a10a70df0b4 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -29,10 +29,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 e7ea1b21c18204335c52406de5291f0c47d654f5..08a7e88e002773fcd18c25a229c7aa6450831401 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) { /*