Message ID | 20250107-fuse-uring-for-6-10-rfc4-v9-2-9c786f9a7a9d@ddn.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from outbound-ip168a.ess.barracuda.com (outbound-ip168a.ess.barracuda.com [209.222.82.36]) (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 49DB2208AD for <linux-fsdevel@vger.kernel.org>; Tue, 7 Jan 2025 00:25:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=209.222.82.36 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736209535; cv=fail; b=k0Kxh6hesaFSIOb6UTrLpZch8th+2TFdOCoSkaksY6KJHzLlJbiha8D/nmZiVfEuiTnW5kOSzmdOfc7vrz6OId0BmlDU/48eOV3SlZBzsf85DObQ4wd1GIUeT5YnxlcsI3KM6MAR12wsRh61CgyeIciHIB6IlMVxsYGOgmGbJNU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736209535; c=relaxed/simple; bh=wxYO2fuIGkvqmeC9PNGhH5rOX2Wls8HlW08RzezL2Zw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=f0xN2EUlSfXlkDhCjnuuIFz0BODwlKR4bpn99fTRVvVq6Rn8G6Z8pnZli9zVRyPRmy+MabZa138EdGT+XtaSj0W6Ll9dDU/SdfXn6HWUMwcmuwREe4K3zZVU31wjisQXF8tOKygz/KLN/lp/sllj2NGJQKGcLIg93Ie1Mw9T4hk= 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=B8wZzpRX; arc=fail smtp.client-ip=209.222.82.36 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="B8wZzpRX" Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02lp2044.outbound.protection.outlook.com [104.47.56.44]) by mx-outbound-ea15-210.us-east-2a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 07 Jan 2025 00:25:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VDy4x79QSxc5m71YtODBNQQnqrTCxw5a4QYiVsjuperHjPmjZykhMOEHIXtNs+fIB4/RYmH318vYnAvEqh7uls+CoDduOf1e5zCVp61KsPmXBPyGTComlOG/FQ7C46bmt6lBpGpI8tubZdDOe89V00+x2Vg7ne7ShbxX37tLYmeI/g978lLiPxO2TEPaWY+tx5OgOFJjw9zW2hofYJGnGCfnaE0+2RjYq/vDnA9UGkE8QrlbY/cEJD22apNgYyalbeyMiiHaYCAXHSh4ee6OqpSHur6c1pSHHBqtMK5I4BnuBOmEWXwI7iiEdiG+NOsW0IB96Uh1PaXit9/FPr3zQg== 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=hAgBjLWkV7oHdA35f4ET93Ocl3k2rLGZEn+8xfR4iOY=; b=sRYqBFbWa7NLUd5m0/BMfZhPt1E/j0hRYiXaO9NKcMCgTg5Pd8KrnEkCrEroIw5nQcs82dwRj5DfCiTJ8ju9AzXwW25x0icPPUWOxEe7DytjA6itUHDJNPZTz6hKZktHyMVjfyJZkegMKeecIacJ8lAk7ppv6mX6DzKstWgnU4biAPt7kCZwQ5bMn3/dWMnhB2uTgFzPH3JhRZr0/BeGKQz0UPYvKDHm9xE6ZXNi4ZeiNf4DBWTohlfMG3SqtCv7wiWiXCAMNEcpec8NhWhS5DXGoW1OTxn0tBPyC1TiR2ZryRIIfS+I8LaeLV+KOTurHHqc/+CvIXuynDVIevvqvA== 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=hAgBjLWkV7oHdA35f4ET93Ocl3k2rLGZEn+8xfR4iOY=; b=B8wZzpRXZJsxrFqO193Ts2ZjSrnSryTLJ2abvlnmIIAYic/0zoUETpJFECKEeV5w3HCDnXq04D9ze9qSR5nUsQthIGKTzojPaPlWAtZgukxogxnBGa8nmW8XBpWAeHBB/gbJyGMEQDy0dUgVYASCC1aUEqKBYQuFmsyd4sTs14E= Received: from SJ0PR03CA0266.namprd03.prod.outlook.com (2603:10b6:a03:3a0::31) by DS7PR19MB6071.namprd19.prod.outlook.com (2603:10b6:8:82::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8314.17; Tue, 7 Jan 2025 00:25:13 +0000 Received: from CO1PEPF000044F4.namprd05.prod.outlook.com (2603:10b6:a03:3a0:cafe::79) by SJ0PR03CA0266.outlook.office365.com (2603:10b6:a03:3a0::31) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8314.17 via Frontend Transport; Tue, 7 Jan 2025 00:25:13 +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 CO1PEPF000044F4.mail.protection.outlook.com (10.167.241.74) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8335.7 via Frontend Transport; Tue, 7 Jan 2025 00:25:12 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 4FB3B1DA; Tue, 7 Jan 2025 00:25:12 +0000 (UTC) From: Bernd Schubert <bschubert@ddn.com> Date: Tue, 07 Jan 2025 01:25:07 +0100 Subject: [PATCH v9 02/17] fuse: Move fuse_get_dev to header file Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: <linux-fsdevel.vger.kernel.org> List-Subscribe: <mailto:linux-fsdevel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-fsdevel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250107-fuse-uring-for-6-10-rfc4-v9-2-9c786f9a7a9d@ddn.com> References: <20250107-fuse-uring-for-6-10-rfc4-v9-0-9c786f9a7a9d@ddn.com> In-Reply-To: <20250107-fuse-uring-for-6-10-rfc4-v9-0-9c786f9a7a9d@ddn.com> To: Miklos Szeredi <miklos@szeredi.hu> Cc: Jens Axboe <axboe@kernel.dk>, Pavel Begunkov <asml.silence@gmail.com>, linux-fsdevel@vger.kernel.org, io-uring@vger.kernel.org, Joanne Koong <joannelkoong@gmail.com>, Josef Bacik <josef@toxicpanda.com>, Amir Goldstein <amir73il@gmail.com>, Ming Lei <tom.leiming@gmail.com>, David Wei <dw@davidwei.uk>, bernd@bsbernd.com, Bernd Schubert <bschubert@ddn.com> X-Mailer: b4 0.15-dev-2a633 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736209509; l=1631; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=wxYO2fuIGkvqmeC9PNGhH5rOX2Wls8HlW08RzezL2Zw=; b=B1IReqKRpfmf+1+csct4gaCWVicvG8oa01GHiOYfZkxMRKYayyYTG6qfyRRZEXxQx0LpfHdWQ RZsjf0YyfryArZoAKZrw9uWvN36wUREgLU1JzUp5ErODl3lKETRZToV X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000044F4:EE_|DS7PR19MB6071:EE_ X-MS-Office365-Filtering-Correlation-Id: 89319898-9d80-408c-68c8-08dd2eb1c084 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|7416014|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?k9qLLsEDEvNGWkxb31OxrdkVX1QHByT?= =?utf-8?q?FU4UkFlHKOKvp8PbogszpZOwKp8hCs8sG+PjpqlB+EF6eGYI6Gi5/B9uuRc1MbMPW?= =?utf-8?q?dg/bPr/NLokvm4hvwsAdLfmDZCo4Caa49CXMh6W4VKusGyycuCAAkHJrzOeisb5e6?= =?utf-8?q?URATG46U6d8al0O2RiFiVz654OhXkey9U3Y/I4Ri8h8MGg3AVb4fVPBLqWf3lblvA?= =?utf-8?q?NI6XMMifxmIMRdn5Vg0xcnbi7UeHQuvtyG1QT4+6C3RwPRhgut2eNAqWm9EG2wZ1W?= =?utf-8?q?YhPmZXFUjE0Fgv3VUrr0qthdmFvW7EldOeEgOmIx01j1/dDlKCb/6CGf9wLc+BlO8?= =?utf-8?q?jhLkLGjytIjrRyPSsLo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/Y7PQ6u9vT6Z8Yq+fGPBdO4p6P306Z?= =?utf-8?q?xVP1xaxgEakYj7YWEYqaz0v7rZ1wXVDPfXtMfKT3EecuWsI/1A7qexUIMefFap4dO?= =?utf-8?q?PM9l8lBm/udly3MhvDsX6AnhNnc6kZcEHvZvlEqu0jjJUcP7k22aOXDTJZkSJJRul?= =?utf-8?q?4CH6dZ5xrD0wuVxVjsJKshKr8kd5DRGKK7qw4qmGsC7HbARkvuRKoY=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)(82310400026)(36860700013)(7416014)(376014)(1800799024);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: MCWwkNgW/TNx75A5XS8H5xj+eSlJKnGTB2C24fSK3F+mUzaQeBA3Kn6eFr5BkUUA8yg8E4yg+BZSUxAZOMc0VpM5C7CoyjMeR72/AITC4b9XARJLzVBHDubqbcatMLHgf/lX7yAhW+Zd3vwgM+L0G7hDt9Dln4S1dyMDXql02XpLDnbfX/9VJCvGLi89fpdmcAOyEcTt+evPR+f36xTmHVgdxUAWLz7p6JYgQBGYQcH9g5D6T9B5NzwgGrXo7mFNZ8WWDqxyBKcKBfSvvP2IEjPXRuZh0iFks/j27fkY4NKxWi3cB6Hip0emwx7SQi0BPvlW8eSvnhXynLT5KC8Y5yh2BwT3jyhS393qcOhVvOyuc6rEB+yF71BL4jFhCoW4vFsoRukaZeYElYczE2XZWmMr46+4JJY8X6oOLsFMf/q5SHMtVV9MCWg7ixyZ3OrK6ArUr+ikOgZ89XTtALYjCZHRvBHuKeuYrN5nGhvO05noOmaAGl6ceqpts2DyMpH+8uiEu7W+CLBYM//VuZQGdasrJPA1LJF1fb5kiHFcdd1aBC/ShhkXAOnwv8iQeCvTYfVe2gbcPCvXS71kidt4ETjk6bKWR6plski4x1Kwsa1Xj4eLC7pm0u1EGtAgVq4ydeuf4lXnpFMOuU9FCfhQwQ== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2025 00:25:12.9376 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 89319898-9d80-408c-68c8-08dd2eb1c084 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: CO1PEPF000044F4.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR19MB6071 X-BESS-ID: 1736209521-104050-19458-90164-1 X-BESS-VER: 2019.3_20241219.1759 X-BESS-Apparent-Source-IP: 104.47.56.44 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoam5hZAVgZQMDXNwsDEwMg0KT k5zcw81dDQxNgi2SLZ3CjVwsQw0chAqTYWAMycoyBBAAAA X-BESS-Outbound-Spam-Score: 0.50 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.261635 [from cloudscan11-173.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 |
Series |
fuse: fuse-over-io-uring
|
expand
|
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 757f2c797d68aa217c0e120f6f16e4a24808ecae..3db3282bdac4613788ec8d6d29bfc56241086609 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -35,15 +35,6 @@ MODULE_ALIAS("devname:fuse"); static struct kmem_cache *fuse_req_cachep; -static struct fuse_dev *fuse_get_dev(struct file *file) -{ - /* - * Lockless access is OK, because file->private data is set - * once during mount and is valid until the file is released. - */ - return READ_ONCE(file->private_data); -} - static void fuse_request_init(struct fuse_mount *fm, struct fuse_req *req) { INIT_LIST_HEAD(&req->list); diff --git a/fs/fuse/fuse_dev_i.h b/fs/fuse/fuse_dev_i.h index 4fcff2223fa60fbfb844a3f8e1252a523c4c01af..e7ea1b21c18204335c52406de5291f0c47d654f5 100644 --- a/fs/fuse/fuse_dev_i.h +++ b/fs/fuse/fuse_dev_i.h @@ -8,6 +8,15 @@ #include <linux/types.h> +static inline struct fuse_dev *fuse_get_dev(struct file *file) +{ + /* + * Lockless access is OK, because file->private data is set + * once during mount and is valid until the file is released. + */ + return READ_ONCE(file->private_data); +} + void fuse_dev_end_requests(struct list_head *head); #endif