From patchwork Thu Jan 23 16:55:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Schubert X-Patchwork-Id: 13948457 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 34D7813FD86 for ; Thu, 23 Jan 2025 16:55:44 +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=1737651348; cv=fail; b=doR0NgQcrFxiaZc/ydsZExyYxZ9ExTvjsSC8a1P9NmtcJU7C4A6yezENFvNsVOwaaLj4QHfbHhi9ndehM2i8wpKq5B9cqlUbDoIA1S0UAzHcRrF5GzLe6rkB/VXsQ2oTJ+YiAv41KS9hswBAJWzfmlKMiUFa09mAUiFy1HqI8sE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737651348; c=relaxed/simple; bh=rdfMq1HAE2encw/WY/ckMwU62JWj/mIGOqQmGzFXnRI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=EdldBgvJH9KM1oIsG5TUhD1T6sAyxhY9nbeXwdp7+AUR54FFd/0fElL/KZH1KLa+/D8PrqQUqnEnOswcX+Dnux9O8yf+8cSsHjV05tR4LPJjqto+RBo3Jv8bJ9DunuJUdFuQmia/DPGnXkRhjy+DiI8ejRXAgwlJkSXOtafPPB4= 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=BwZBttAV; 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="BwZBttAV" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2170.outbound.protection.outlook.com [104.47.58.170]) by mx-outbound8-228.us-east-2a.ess.aws.cudaops.com (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 23 Jan 2025 16:55:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=UOwIYiOCMfNZUzCMUIMbObkDFI0uoEaWZvRNMm8rjuVNFXHsc3o1AqO10voJNE3SFuPpjBUVuAWh1B3K04AcSANJrvsC56sRFK1nnC85/AmffO+lRza+uCctlGbq4PmRzLc1B5UUeDHlvJTl4M8bpxfTfIrxRjM1FEKaZpmQWDO/7mYz4OrpeJlRFOF8rnHe4FBvXvXvqnESESJ6azRZ1ya0xI/wURahDG4p1W9lnm2K/jv1gd7THduaVLc3DGAAkAJ9lArzzZ6TMCXjz8e32Gn3fJcdLjWkD2uQFMtSdWeetgpnqA3zGrinzZrTAPPWeuW6eVT9/AmlZ1BJW5x48Q== 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=s/v/NdeUwuTrinsjh8ObvD9QjgyZuXzXfvHA826PVUA=; b=kr923zd7G+rrEEEmPNdRieDsiQi0rsoUkv77fzoTi1NvwxJK3HlFDtbmrYEY3DwQUE7+jRVPUyzI6tOlbvVKJ7XhcTZGpS4rRsC+moesOH3OMRD4Ry3pb/Pq83pwoqwxZQpAjCwbU+6wnv1dhx2aGiKYqMFV/KVMGammKLL0WNCOKycGshp95lndxM5fb/rLy8A1eW52iYIUetihzjUnwfSviJAFEMxqWic2BCdKb9BsK3TezFu+vktyrdDkcQ2Uu764tlrw0ebLya2eGKFXi5gbJ0WpmLidvojO2OXAn4H7bEMA37rEWX8TK5Cd/FC+os1yUZjcS5VQJizO/LIaRA== 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=s/v/NdeUwuTrinsjh8ObvD9QjgyZuXzXfvHA826PVUA=; b=BwZBttAVHvsv8XqDx7+FlA9PueOP8fQw7TiznraEBzTq6kJ3B1SiFfqnEz5/r786AG6PwKpj0JjKdH+jiCejAq4x03PU2b8vHHPieqJzW+oT0tFSvxwp72IrHhYLGd2hU6jmfrrcJoNl1ti3cgMBjK5tStJjtMwid/o3epCVGJQ= Received: from CH5P222CA0011.NAMP222.PROD.OUTLOOK.COM (2603:10b6:610:1ee::26) by DM6PR19MB3737.namprd19.prod.outlook.com (2603:10b6:5:248::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8377.16; Thu, 23 Jan 2025 16:55:32 +0000 Received: from CH2PEPF0000009D.namprd02.prod.outlook.com (2603:10b6:610:1ee:cafe::a9) by CH5P222CA0011.outlook.office365.com (2603:10b6:610:1ee::26) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.22 via Frontend Transport; Thu, 23 Jan 2025 16:55:32 +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 CH2PEPF0000009D.mail.protection.outlook.com (10.167.244.25) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8377.8 via Frontend Transport; Thu, 23 Jan 2025 16:55:32 +0000 Received: from localhost (unknown [10.68.0.8]) by uww-mrp-01.datadirectnet.com (Postfix) with ESMTP id 79E5E58; Thu, 23 Jan 2025 16:55:31 +0000 (UTC) From: Bernd Schubert Subject: [PATCH 0/5] fuse: over-io-uring fixes Date: Thu, 23 Jan 2025 17:55:29 +0100 Message-Id: <20250123-fuse-uring-for-6-14-incremental-to-v10-v1-0-8aee9f27c066@ddn.com> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAIF0kmcC/x3NwQrCMAyA4VcZORtoqmvRVxEP65bOgKaSbkMYe 3eLx+/y/ztUNuEKt24H402qFG2gUwfjc9CZUaZm8M73jvwZ81oZVxOdMRfDgHRB0dH4zboML1w KbuQwhXSlkGKM3kGLfYyzfP+j++M4fgC3pzV4AAAA X-Change-ID: 20250123-fuse-uring-for-6-14-incremental-to-v10-b6b916b77720 To: Miklos Szeredi Cc: Dan Carpenter , Luis Henriques , Joanne Koong , linux-fsdevel@vger.kernel.org, Bernd Schubert X-Mailer: b4 0.15-dev-2a633 X-Developer-Signature: v=1; a=ed25519-sha256; t=1737651330; l=956; i=bschubert@ddn.com; s=20240529; h=from:subject:message-id; bh=rdfMq1HAE2encw/WY/ckMwU62JWj/mIGOqQmGzFXnRI=; b=fh+zpwdJXx5kleEVONeP+AoRXXMKY4Ef4V3Pa9yVgieC5BAgpfUBwBJ9NQZsQDcqxS/R3ujBl 3FN7UUJXeHMCgxJawds2ikna4j7bINxTkK+QyxAJVwA8+L9QtbsNLix X-Developer-Key: i=bschubert@ddn.com; a=ed25519; pk=EZVU4bq64+flgoWFCVQoj0URAs3Urjno+1fIq9ZJx8Y= X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF0000009D:EE_|DM6PR19MB3737:EE_ X-MS-Office365-Filtering-Correlation-Id: a840c1bf-559c-4d24-781f-08dd3bcebfb4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: =?utf-8?q?bmZYHTiQoOjV2+KY89RUD+IACD0bwv4?= =?utf-8?q?IihDzHuICmaEMhE3VZ+iwdgVo2YRwbsb1HVvEzQUgpg6q6OQXRi943YW+b1u6Imji?= =?utf-8?q?qusgd/H/mhxF8UmCBzCOAINRnV3WZhUZw2lTw7uxCQ9mzNMs9Jz1I5HQtyt1o49VX?= =?utf-8?q?ajhk0OfF4ZSSY6lENXEHgu/ImIv+QrLWE9i4KIP1kkQCszuOVjlZc5pECv16ocYfo?= =?utf-8?q?+ulAMkzzMnldI/q70kpE30p+XPHqjqbZtEh1w3Xe5rUgkBlvOKy+9emW+nEy5E0Bs?= =?utf-8?q?+UpGNbSNrHMQcpjiRrp31xMLX5eDoVccIJj4kUEJzMosT4C2+qkaOLsjpMa6yhpEd?= =?utf-8?q?A/lDXqVo/9uLM1VLp+PtY7frt1XmxmiGyw4W5a9q5VebX1w3tJTJiXOWNbuFAdZjF?= =?utf-8?q?kHJ8HDyIUkyiCBAiFyRF98jBKn66W0BUBQGktMXSCwz9I85mu1a1dY8TIj2phDnNR?= =?utf-8?q?EEHl8tKQJCzReotfzqbRVwd/X0wVBiFeWguHVp6bmopukZfNVznfKJ0ao6d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/mELF8S88n?= =?utf-8?q?0fzflZ4S621ydo7mYYp55lVO7RvFZCU2oZwX7ytAopTBeOdN79vZzI=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)(36860700013)(1800799024)(82310400026);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: WLGzpNlm0b6gNs4dpLUJR68NePmhk4oEjNr9VtS46B8dwJ2npcmVswxb4eH/QC9CqTiWqlWfBmBZyHJhPOqBGaetQuFc9/ANq9/I0qZ/XJ06eHqEAvDjP97EJa0L1iSGnOMployu+VyTF99ydFxKjfbz10Qh0LDce6HiiVj9xI5LIc7gC3eg9U4l9ghjv82+qvztunj8tCW0EeiHPI8vRyKDvI9gA9PQq0KnfVVr1ee+bTkYCkI72JXOOncOFsADF4N24B19nQiLXQEHV5ilgQIigL8Cew7Mpuzyctyi343gyPYq2WdqRblMQO2iCh4nEna9kMzFkJyqM9GYFsT02r9wVqd9Ht8UX8UpwImEGuadW2j+ROUEMwGhZbD41C6DoJWCmZt0abuUwDfEyi8WMVnDYu5g+RgJh8K6Hjpqhh0SwDIWnoV2Uqww9Bwn/2ZQPNVtjw7K8eXEXvF3p8/SZGwPPvTKo2uU266OKVHkI7bs17v7yoIcwQJn2Ja9s78uuMFxMfORvQuOJtOKbR5U4yFjwurkTaAjaGIOzTd90mh5xL7F74qrHoZcFChgo9UfPNY6Gve7Eo5ilOJgBCvZsAG43LeNXJ7n7Nehwd3B1NtwkJ8s//LojNhxl60GWCwV9nRy1whVEgA6JUGw9iiSbQ== X-OriginatorOrg: ddn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jan 2025 16:55:32.1118 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a840c1bf-559c-4d24-781f-08dd3bcebfb4 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: CH2PEPF0000009D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR19MB3737 X-BESS-ID: 1737651335-102276-13470-14919-1 X-BESS-VER: 2019.1_20250122.1822 X-BESS-Apparent-Source-IP: 104.47.58.170 X-BESS-Parts: H4sIAAAAAAACA4uuVkqtKFGyUioBkjpK+cVKVpbGhkBGBlDM0iDZNDEtLdHS3D IxJc3MMM3YIiUxxdjcPCnF1CLVwFypNhYANfdqyEAAAAA= X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.262005 [from cloudscan21-131.us-east-2b.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 This is a list of fixes that came up from review of Luis and smatch run from Dan. I didn't put in commit id in the "Fixes:" line, as it is fuse-io-uring is in linux next only and might get rebases with new IDs. Signed-off-by: Bernd Schubert Reviewed-by: Luis Henriques --- Bernd Schubert (5): fuse: Fix copy_from_user error return code in fuse_uring_commit fuse: Remove an err= assignment and move a comment fuse: prevent disabling io-uring on active connections fuse: Remove unneeded include in fuse_dev_i.h fuse: Fix the struct fuse_args->in_args array size fs/fuse/dev_uring.c | 23 ++++++++++++----------- fs/fuse/fuse_dev_i.h | 1 - fs/fuse/fuse_i.h | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) --- base-commit: a5ca7ba2e604b5d4eb54e1e2746851fdd5d9e98f change-id: 20250123-fuse-uring-for-6-14-incremental-to-v10-b6b916b77720 Best regards,