From patchwork Thu Nov 21 23:43:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13882477 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 46E224A04 for ; Fri, 22 Nov 2024 00:17:07 +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=1732234628; cv=fail; b=jBEoDEZgRM6IMMXf6Pd5nsCltEPDHxDcV0UAA7sZUQyn78rTycaEPvG045XZiLT2qm0CQuyG5WhN+A70fjaWhMc2gefoNukAvEjrYRrc9Uprk7QNMJL9VI6Ga0yYuCqD1MNGAaBrHeGEJxqQEakGfdKxHpvswJgqJq3YJqPVj8Y= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732234628; c=relaxed/simple; bh=+WrcrOS7S19aGaDDvqYM7mR3M0AYD6vNepObBY/hSHc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PD4+AcoGubUn98VJFi2GJLX3grO/OgL+McpEIZyczJe0SbsUDEb99mjyf6fgRvRBI8e8qbYUTZBs50hlkbhG5bhPaf3R5+EWOJ5d4M0Qj5ogxKvzyHgJSVYm8IOOz5siBEkji7ZxfISN6xd3WZYWCsCc4k9xy6cOyNwhynePCns= 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=N2iWj4g0; 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="N2iWj4g0" Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04lp2174.outbound.protection.outlook.com [104.47.73.174]) by mx-outbound20-244.us-east-2b.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 22 Nov 2024 00:17:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DS9+sb7IoztOLiPl5x69R/B0UnQatBEZfIfBLGwzn/7mMGyU70pATCS5j+kgosURx9Lq/jChX8v7ueDTQdA8GobWIspjmDaia7XmxgkMKr1sAcbDbjisYaNS50no/mBiSJe3vH9iRSNNmw/mDPC140XZy/zSTmVXCQvCUuSZvYVnKui5R/vMKEY+eCpZhZD0cUHBXAnE9TuQbjwShKTqwI6XCgMiJ6MTsNI7NquEAicTI9MqqjaQYSWodMOy6YGXfoyIJDVw32N9WPtG48FR9wCzPk7/YYNGfaPX9LEXqGTdWHoVkZxDVy0sgKdrU/h8EnZEWfhTTyuUr1xp2g8z0w== 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=OGwHhHgxLXrT76ri17FP1dSIOhhMaSHHNs95wieBHF4=; b=ea5bFWGu7+r6nLGee8n9j/1pns0Tbu/Mp/WxIyt1TQReJR/5XoxFEFEHJPh3dZu9N3sdMIGmCj+zAARP2B4mX8uy7MezZddl/IUrIZ7wYFVZgycNhvt161IvbX9uZ0OF8PEuwup4nAUP6480KdbNAfHiE1Bvjgia/n0qYkrc3sQOGucIC4VVFJgpgUUajHAlJA7PJgZ/6QJDNxFt0iZ/BTs0MyFjHsBNfaw4UkCaEm1d1ZaXzyr8CXzUTTojEUjp3qjaCrynLKKm0anXq541CL2QWCf6+qYQDZ+7oxeR9K3Ic/E3/STT4fnYS0vahaOlnXN+8txdHX8ZFYa313Zgfg== 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=OGwHhHgxLXrT76ri17FP1dSIOhhMaSHHNs95wieBHF4=; b=N2iWj4g0mBS/M3G3HF7h5K3RsQZbzrT0Qfj9LQrLdxKUt2tLTe9n0lQeuwSt7BsWLQ2pwCpEVZ8j57sN3vp9rIEsGmzk2w6z+y+NIJ7tLP+AW/gUVpTsU1Kqr2dxQNtCJuX+CC6YJzxT7+Mlgd0B3ghhXSCQpOeZqcW89cdCVXg= Received: from SJ0PR13CA0183.namprd13.prod.outlook.com (2603:10b6:a03:2c3::8) by CO1PR19MB4918.namprd19.prod.outlook.com (2603:10b6:303:db::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.17; Thu, 21 Nov 2024 23:43:54 +0000 Received: from SJ5PEPF000001D3.namprd05.prod.outlook.com (2603:10b6:a03:2c3:cafe::e5) by SJ0PR13CA0183.outlook.office365.com (2603:10b6:a03:2c3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.14 via Frontend Transport; Thu, 21 Nov 2024 23:43:54 +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 SJ5PEPF000001D3.mail.protection.outlook.com (10.167.242.55) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8182.16 via Frontend Transport; Thu, 21 Nov 2024 23:43:53 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id DD62732; Thu, 21 Nov 2024 23:43:52 +0000 (UTC) From: Bernd Schubert Date: Fri, 22 Nov 2024 00:43:19 +0100 Subject: [PATCH RFC v6 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: <20241122-fuse-uring-for-6-10-rfc4-v6-3-28e6cdd0e914@ddn.com> References: <20241122-fuse-uring-for-6-10-rfc4-v6-0-28e6cdd0e914@ddn.com> In-Reply-To: <20241122-fuse-uring-for-6-10-rfc4-v6-0-28e6cdd0e914@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=1732232629; l=1326; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=+WrcrOS7S19aGaDDvqYM7mR3M0AYD6vNepObBY/hSHc=; b=r8+ixa7MdtUUyQTP7c2EEFhEqb693rzECsQs+yYsrA6YOet75wvcO1n8F2yYsuxs2qykv8DuD IctOsq3HfIbBwLZga4E6n0pJs6kFny/xrjrQCfS+734xmWvhUIxeOan X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ5PEPF000001D3:EE_|CO1PR19MB4918:EE_ X-MS-Office365-Filtering-Correlation-Id: e907f289-0d7a-40c2-b213-08dd0a865bdb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|82310400026|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?+uc3MJLcS5JFCKgmGmy5k41r89MHu5H?= =?utf-8?q?yXs3gnHy2dfdv1UmsYCU68gUsvPx59h4E5GRH1RH8geZ8cngc6D7XU/IrDe8QIuaW?= =?utf-8?q?f8Bw6VPmN7ICOKiOu5h1P8zcJhGX4tnZB+0Q+xtFOIS6AzzjsoG8tBbJcYCITIRCi?= =?utf-8?q?n1s72MZR3vVLA79oFMw6Zolf8XqoIDY4IZWmKbh1Ly1Rv8c7FoiXpngPBD2e+qW0e?= =?utf-8?q?AWZJ31ycHB5UFBFhde4UCaDH3NrRUwS0M6mjnIBUwMidOrZnkIoRPjiZtSausX86y?= =?utf-8?q?/ERCHDLxia9/H2q9vPIe5I+2tBSd+KK49ErbR1JKJtTcDWxCoH+J04WhFB3RSzC/L?= =?utf-8?q?/TbyxJRB7w44bLAFpG+V+fOdJPmSqhs8EQvdeOhNbVodVGSnjRX8LstfF7B3fHk96?= =?utf-8?q?pQJ/pEP9c9YkRjE2w+kPaqM21MhH190+beyq+XQUGTCUQirDKcZ1BTI9Y6Tkaqu2W?= =?utf-8?q?MPNHLd6Nrb2g/4jgiMeIJHs5O2hPGkTlVlFZfPbGQWl8cA21q7eRlj/meUu6A3Qs6?= =?utf-8?q?rILq0UK3d8LHC69rDcRRxAWNwnTKVTOfykilO2msxPQbjebnPKe02EeHtqhTOysUf?= =?utf-8?q?x8fhBLYmYX/yHglbbqE+EX2aKc2fiwdSh+HJtra9zhNcGCZVd6ldZeibaQp/aDSwy?= =?utf-8?q?CwZjWGSDv4A8NJMoLFEnbiQEEoA4om3pr8IhxT25LZzUW0ed/xkW1gN5HAUIjjgFd?= =?utf-8?q?B8G+wbweq9v68skQQ10O/JfoboMENK03Dd969MSLftjXve3L7LPGBAS/x9qBeGq8W?= =?utf-8?q?z25PQScH+xkS/G5QiZLMiJBOYm98MxLJBx15jTOEQc5hOq860u7YiFWyfeo2Id2bO?= =?utf-8?q?mxpB0rj4wK7QqVEjDaCkNGVXN0XbuNDu7i3Zf8gFDCG4gOL7lmIM+D7H/ft5IVxls?= =?utf-8?q?0fVzm997cvivvlIaiEaa4PBx8++PdkBrzttP59Id8AVMrlgdzCAsRE93fjBE0rA+n?= =?utf-8?q?m9eWXA+0yTo2TgcTAODAcBemR9B7F+1+I0kw+x47vSrVYVnfojx9XviBHYcZOBSoB?= =?utf-8?q?+UOncCQv0mQ0TbCWD0VRSwZq+P+WiaHCOTITyVDdNJnY+B3nyCGRltw9xVNXH33bX?= =?utf-8?q?/7LYTjAHUOXxSNgxkoXySUeL9ATUoOJGRDHbNgOOuAg1W6cMlR/UqjmMkcXKbuAPI?= =?utf-8?q?QaYr+UJmsmnYG99Ttcdiz9EUkBl2gnrJX71+v6FyQs+hntf7FWCK6cii+40kmRVXE?= =?utf-8?q?DvJXyZSW2VNNZapoUneWnWth9WEGdpU2Jbx8jF09qi8DFAA89rosbNILTkgaZ2oyP?= =?utf-8?q?YM3retdetXY+SDTDgdezLR1lerg44hUQQI4eq4rItY7+jV5R0/nOTmcYJ3viQgAUW?= =?utf-8?q?t+mn12zHgsLCuOtOwbDk0Z+c9OtFoWkJXg=3D=3D?= X-Forefront-Antispam-Report: CIP:50.222.100.11;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:uww-mrp-01.datadirectnet.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(7416014)(82310400026)(1800799024)(36860700013);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: a7oRsqiTtLpHyUjhSWAx1fDVIHVCIh+iIMgQptVo+LQ3Nt7+geWF8z86pqocBAh65/BIvLgoIZpP/E1/q/ebOctgND7a3n51bKGlpwmHhrDqS9CTRFC0dLujHuRc0j23bYZhb0GmkVp//XeokCrBk+b5SN91S9H4E066zReMRhhU5nqntiYe33qGPwJtRrnO+yTPRQ56M9j0TU82XFA6YKp6glYFgPKhu0DyxuQt3X9UNl4nhD1MCMq/a9QpQ7H0RPgOOH8rfLF4Iitx1RFsifydxAAeGvvIDgd0gBRcziJZo8NFG+xQRxKQf7+PeCN8r0fIADrw8cIk1Q0qJXqnDVBC4IZNTqcWudiKZmO1KV6AVO0lV1gTJjlz3yqmJjnU8F57x3PcqpELoLaIt+6SA89N820fO+gRsh7k+4oTUK5rGmqFNUjruqGuxfbGnveSALA4ES4ui6N4BMDituaCcr4PMLNex5a/MPdCAnycIbyCaXIJNcerS/Yj9Gqz2aRdDaaUcwbKbDzxl1oubPvP0YHotWbmtzDVkfZ6+i9Nyy1v27WQLFgrUPEvL0eso7J/wKGhNlVAL6BKfSm5c6KSdQLPCzIfuN+UgMyrw5iwwLdIY/mQnkMB4nkZ1JTsispKfJl4foKOmFhXpMCIn8wsEA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2024 23:43:53.8561 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e907f289-0d7a-40c2-b213-08dd0a865bdb 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: SJ5PEPF000001D3.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR19MB4918 X-OriginatorOrg: ddn.com X-BESS-ID: 1732234625-105364-29563-6014-1 X-BESS-VER: 2019.1_20241121.1615 X-BESS-Apparent-Source-IP: 104.47.73.174 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoZGFqZAVgZQ0CIl2czU1Dw1LT HJLDElJdXSxDjZyDw10TLR0DDR3MBUqTYWACnVpbpBAAAA X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260587 [from cloudscan13-74.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 0.00 BSF_SC0_MISMATCH_TO META: Envelope rcpt doesn't match header X-BESS-Outbound-Spam-Status: SCORE=0.50 using account:ESS124931 scores of KILL_LEVEL=7.0 tests=BSF_RULE7568M, BSF_BESS_OUTBOUND, BSF_SC0_MISMATCH_TO 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 649513b55906d2aef99f79a942c2c63113796b5a..fd8898b0c1cca4d117982d5208d78078472b0dfb 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 b38e67b3f889f3fa08f7279e3309cde908527146..6c506f040d5fb57dae746880c657a95637ac50ce 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) { /*