Message ID | 20241209-fuse-uring-for-6-10-rfc4-v8-12-d9f9f2642be3@ddn.com (mailing list archive) |
---|---|
State | New |
Headers | show
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 D46FE222D6C; Mon, 9 Dec 2024 14:57:09 +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=1733756233; cv=fail; b=NVvHNSZIpzV0FGPFWZ51zrbfJii8fSOnGBf5GuoVQTyefk18EaYqXKaEC6YCBEPKNUkBD4GI9Ezc9SFrYQymMUqjKI4Lfr8/gG3IuBALqM8g4ZjWDGPLnUgYDSz9qwyQogCkhjT+ElXvJGUN33yoL/c+g0d3FBb81t6WW1b0ZBE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733756233; c=relaxed/simple; bh=CZr3S7iiYqHqnIv3eTleEfD+5LU4X0VMvfqqhWyF0kI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UI89LPMB4Wnmg25cYE7Dw1QRX1oA8u1tQZ2Eg1haRq4GC+5YktnDcfT3/qz0UW0mFAMYaW07LJ48abysWbuVYTCUan+vs8ljB+Pm3VmMn4GkFSogL/l5omHgBTeFlHcJHxrg9WVxBzpRhMTaqoRwetovFOD1D2fN323Q/BDM4JM= 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=aXNW/ew7; 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="aXNW/ew7" Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2168.outbound.protection.outlook.com [104.47.55.168]) by mx-outbound19-223.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:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QCIN4Mj+k/4s+P+upM2iTMqWgWalXOGM3h+5ozsTD+hrauxChRFGXf1Nhe25XEu5C8a0jc49VMw/1GI1rtwgRL9JlV+KrCK/VPFL4ofZSLyyQxqkUztSBotLCdq+szxLuzWgRkeYCM8pjJfXSt9mLkaAv4lI+cxRDdeuS8vmut1+HOiz9JoGGNpnVAI8zy3+zFfUlKR9UMF5cYWe5MGfND16OLNo1EwBj8c/epQaePSn2E7AQtT+MY9XRUoBD8Z08KaDpq9T9hfN7ooNvLqjXf5nYyW2/EFUR21eoua9k4z1SoDcyi++6HvZT7+upFJdMiqiiZbyTVu1T2PX5WeEEA== 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=J7Iq7p4MbRs+sH4wgNVtfpwoxwBVqkpF837dtxkSE+4=; b=njwdknqXiRvE3R7/qh40gtxoEOFR53YG1P0R1cVmkRKP7kxeKWOC0pk7SamnWqFR+jJCgHU0lh5JWPf02+YEAMUMwVHo90Zj7LYNcao6LaY8Ixs0zSjtXvGLYoJNF0zD6WTkB6O13eTTNebBD6Fuw/lLkxf59uL6gzKOD5cgXLCSqssUNzFkEMBaj2LK+FddQ7pSytM9XMRsU+itDCHr8jfLMoNKs/3E5f/GiE5RDa6bWy2GhQooQnkbMEt/QZsF4ZI44wQZKosddFU8A0nUGbnAdFROVaFFLCgJmYO0jkI5E3IOxKRh1ZYmM75p4j7cvddnBZCBRj3XC6H0PKk6YA== 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=J7Iq7p4MbRs+sH4wgNVtfpwoxwBVqkpF837dtxkSE+4=; b=aXNW/ew749hpdE0XoNNc4DilT897qVDVcLtWxhFlnUDeP7IBJ7fRz7f4+q8RMjldij5OZeYuu0ltuam/MuT+DK51novGqUJQpZVnIpVUuDMwzLdhy0ttlhBOvxv6i+N4Y6Ho+MEJhYUaqtL1Ct1zZqd9M1vT8CCYutiucfGAZCw= Received: from CH0PR13CA0043.namprd13.prod.outlook.com (2603:10b6:610:b2::18) by DS0PR19MB7719.namprd19.prod.outlook.com (2603:10b6:8:fc::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.12; Mon, 9 Dec 2024 14:56:52 +0000 Received: from DS3PEPF000099DC.namprd04.prod.outlook.com (2603:10b6:610:b2:cafe::f5) by CH0PR13CA0043.outlook.office365.com (2603:10b6:610:b2::18) 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:52 +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 DS3PEPF000099DC.mail.protection.outlook.com (10.167.17.198) 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:52 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 7C26155; Mon, 9 Dec 2024 14:56:51 +0000 (UTC) From: Bernd Schubert <bschubert@ddn.com> Date: Mon, 09 Dec 2024 15:56:34 +0100 Subject: [PATCH v8 12/16] fuse: {io-uring} Make fuse_dev_queue_{interrupt,forget} non-static 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: <20241209-fuse-uring-for-6-10-rfc4-v8-12-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 <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=1733756199; l=1912; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=CZr3S7iiYqHqnIv3eTleEfD+5LU4X0VMvfqqhWyF0kI=; b=5SvKvr+oNHrrErmPGprJTijJglJmlo2AWPzoQKirNNLA2de7tNW2u1+4GY/Z4QQY93XDiLR4o fcaaZ/KfUa8CK62MZGMnjzabgG5yVbgs6n2NNT3ptPMNtRKc7439aY/ X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS3PEPF000099DC:EE_|DS0PR19MB7719:EE_ X-MS-Office365-Filtering-Correlation-Id: 8d03c427-78a8-4a8e-73d4-08dd1861b75d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700013|7416014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?fnwOQE1emzborc7h/0SVzYaQuJfvKe3?= =?utf-8?q?qQ+30l1FTmTIgtZEJ/jXfYI1tz9NncxV1DAfuKimfQRxUcg8Kiz+nwmfZAcGeC0Iz?= =?utf-8?q?0p0Vc72fCJrHLTW+8p8t45h+avN/Y4Hp5JF/tVE24piaF3evX30Why2sKAiHkViXd?= =?utf-8?q?yHnliwTmWA8QDwSb9cyL0Iq7T5XLO1PbX7Fr+rbSry/3DWv1HT3PpStEaZbx5+3q3?= =?utf-8?q?RyejZ0JrAjCWGIt8kIj2mEYl8b783kY0P6ytYoWamRJXqE4mes98C7A6P70D1vD0T?= =?utf-8?q?POSgMF07nK6tqZnyLyUuFTQHZm4SIbKvxXtVtuLzTZPS3skFb6NXNzXaQ1TGDoyRI?= =?utf-8?q?yB/a3fM3MGjD55FHyykBFDys01P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VNOkD8J1Pw+ouc/Nx/iyE3ZuKNYvlBVRaklxpwwz?= =?utf-8?q?JzJGeS9qEFCew/ZiHyLc8/9B+2yqi0pZnHP8XrWLeGeNI47n513mysSrTBjjkK86S?= =?utf-8?q?miyLv9Pa+e1yQJOPkkk9X71aHMwB1MuVAcmtnqZPp6rI0hEH3NPFHs4N8klCmGQqB?= =?utf-8?q?vWqx89TNi0E?= 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)(36860700013)(7416014)(82310400026)(1800799024);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: exUCp/fQWHHvHKA9/dhof20C5s2KJvoJu88Uoygl7cSnGgTWLoySUwQ25KVv9570Ir/ORuBshXWYnEEkTEP7MyJX3A2v9XclUQRa746OdEDThzUVLXyHIo3RzdHZoZgjanjz9XmvRhSsPcktCiIuBoHqls+EmM0MOIPPgTIsg5CLC27FMivA2aE7U8mOui1K+DNX0R47qTouipuGmzvm6Gp6T5OCBmWeO7CqHvTbqjwZ3dC8xv1Q13crqQB0Rori5iENuAjL80rJYzSzzW3Q7ACgNTXwyrLG29k56NOm4t/DQnL8OLkFpAspwZa62ejMCD3pcMCJT6IrACJlGMESi5gHv08310zXVhtuf2mKXwPcW/G03cdb+bXSzKzba8dL4dLTDhoGDz2L01Sw+6BYDMWv5iAzvjw4ye0HgjkbwmI4xVUmTGGpOBAOlCuPbX1kkMNSd+hbg4o2GU9xtpJ4xo1j25ZXybmb9HHNdq8GZEH9IYopRNXQtqf4iSDfqRCmLKLdqaUtDviVGxHvAsYQ1qnczLbk+lQO6MMRTS0PkLzsFnao+3JScNGVtYnWKg8uIqIbfSWXzIALNrZ17BR9pAtDz+RfDtpTZeFbqKEGY10tJh+6KmP3ZCXZHxWnn2/I8DfCdT3q0NTX0c053C9e/w== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2024 14:56:52.2165 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8d03c427-78a8-4a8e-73d4-08dd1861b75d 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: DS3PEPF000099DC.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR19MB7719 X-BESS-ID: 1733756223-105087-13364-17990-1 X-BESS-VER: 2019.1_20241126.2220 X-BESS-Apparent-Source-IP: 104.47.55.168 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVoYWpmZAVgZQ0NTA0tg4ycAiKd k8Mc0izdwiNSUx2TLNyCg11cIoOdVUqTYWAE3yzCVBAAAA X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.260997 [from cloudscan15-202.us-east-2a.ess.aws.cudaops.com] Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS124931 scores of KILL_LEVEL=7.0 tests=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 8da0e6437250b8136643e47bf960dd809ce06f78..71f2baf1481b95b7fe10250e348cfba427199720 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -237,7 +237,8 @@ __releases(fiq->lock) spin_unlock(&fiq->lock); } -static void fuse_dev_queue_forget(struct fuse_iqueue *fiq, struct fuse_forget_link *forget) +void fuse_dev_queue_forget(struct fuse_iqueue *fiq, + struct fuse_forget_link *forget) { spin_lock(&fiq->lock); if (fiq->connected) { @@ -250,7 +251,7 @@ static void fuse_dev_queue_forget(struct fuse_iqueue *fiq, struct fuse_forget_li } } -static void fuse_dev_queue_interrupt(struct fuse_iqueue *fiq, struct fuse_req *req) +void fuse_dev_queue_interrupt(struct fuse_iqueue *fiq, struct fuse_req *req) { spin_lock(&fiq->lock); if (list_empty(&req->intr_entry)) { diff --git a/fs/fuse/fuse_dev_i.h b/fs/fuse/fuse_dev_i.h index d7bf72dabd84c3896d1447380649e2f4d20b0643..1d1c1e9848fba8dae46651e28809f73e165e74fe 100644 --- a/fs/fuse/fuse_dev_i.h +++ b/fs/fuse/fuse_dev_i.h @@ -17,6 +17,8 @@ struct fuse_arg; struct fuse_args; struct fuse_pqueue; struct fuse_req; +struct fuse_iqueue; +struct fuse_forget_link; struct fuse_copy_state { int write; @@ -58,6 +60,9 @@ int fuse_copy_args(struct fuse_copy_state *cs, unsigned int numargs, int zeroing); int fuse_copy_out_args(struct fuse_copy_state *cs, struct fuse_args *args, unsigned int nbytes); +void fuse_dev_queue_forget(struct fuse_iqueue *fiq, + struct fuse_forget_link *forget); +void fuse_dev_queue_interrupt(struct fuse_iqueue *fiq, struct fuse_req *req); #endif
These functions are also needed by fuse-over-io-uring. Signed-off-by: Bernd Schubert <bschubert@ddn.com> --- fs/fuse/dev.c | 5 +++-- fs/fuse/fuse_dev_i.h | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-)