Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2221368/?format=api
{ "id": 2221368, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221368/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260409095926.905020-3-rajasimandalos@gmail.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/1.2/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260409095926.905020-3-rajasimandalos@gmail.com>", "list_archive_url": null, "date": "2026-04-09T09:59:20", "name": "[3/9] smb: client: sync tcon-level options on remount", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "8d8ca166e6bf09354f9fea236e13c78398f6c4ea", "submitter": { "id": 91740, "url": "http://patchwork.ozlabs.org/api/1.2/people/91740/?format=api", "name": "Rajasi Mandal", "email": "rajasimandalos@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260409095926.905020-3-rajasimandalos@gmail.com/mbox/", "series": [ { "id": 499267, "url": "http://patchwork.ozlabs.org/api/1.2/series/499267/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=499267", "date": "2026-04-09T09:59:18", "name": "[1/9] smb: client: block non-reconfigurable option changes on remount", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499267/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221368/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221368/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-10731-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=hacRuYEE;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10731-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"hacRuYEE\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.176", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4frwbj0Bynz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 20:07:45 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id AA418309DFFF\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 9 Apr 2026 10:00:43 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C4FE73BD63C;\n\tThu, 9 Apr 2026 10:00:04 +0000 (UTC)", "from mail-pf1-f176.google.com (mail-pf1-f176.google.com\n [209.85.210.176])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 189A03BAD92\n\tfor <linux-cifs@vger.kernel.org>; Thu, 9 Apr 2026 09:59:57 +0000 (UTC)", "by mail-pf1-f176.google.com with SMTP id\n d2e1a72fcca58-82cebbdab08so602225b3a.2\n for <linux-cifs@vger.kernel.org>;\n Thu, 09 Apr 2026 02:59:57 -0700 (PDT)", "from dev-vm-rm.hzz4ddxqtfeetjrh00qlbgyytb.rx.internal.cloudapp.net\n ([20.197.52.255])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82cf9c6b80dsm29113671b3a.42.2026.04.09.02.59.52\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 09 Apr 2026 02:59:55 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775728802; cv=none;\n b=azNgk/PNdqgWAu7oipTouCA1j3zB4IIJ03rHNb9EiZTyV6og4zGwSmc/VLH+dws0EYTsbRBXhO4sA2+4KD/JDMLMmagPAqdKyMUuBPjE2F25WmzT5Yv2q/BZNYaJWRIarVFVr19gVpK5W45gHrL9nKvaRUtqiwLlJyMlkPG4NiI=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775728802; c=relaxed/simple;\n\tbh=xbioMmi4wWbrPSlpG4HbYgE8Rb3DQIUxwj11/DTkU3I=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=MotpLK1ypHJyCgM2e3K2On9X9AQ0lG0tBEQhfwaZzCrgR2k8fH0kX4OLaBniJ2SoUXdYXK2rAXAm6zfADyQYuG1dZpXbyQdRuHPuDhf9DeLccGGhpJYI/a+qS6xlHK3gnTn/uNXuASKDw52LH8tubG516ieAhP4ljhUGyInjgfs=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=hacRuYEE; arc=none smtp.client-ip=209.85.210.176", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775728796; x=1776333596;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=FlkZH1SuQrwakRTOg6E2zmugoAOuiELmZsl+WpaQ39M=;\n b=hacRuYEEBY3eUdxTjB6VYFEqZfmK1fhWRZ7yKcWC4IsEoagaRjiTWuEevNgFuuY3hk\n 60ZzZKLgw8yPsTRo82QVxAHtcwwGU3I78P9DJmmWVSULIckzXEtOfU1eiRrm1mFvQLV4\n shFpegoVH2WkeNck7o6gzaZeRSUWAOcnipIcTQZ53raSmjTpir7BeE4Sz+8y4mDc3Q1B\n 91lxJwxB0WQyrDKNBdoAF48vwUP2ORo38ZZITgpozNFVC6akipgtQFEQq/uLz8wxJXD/\n 12W3/8FQQ/LsorjkeZDkR9w20TujIb0Kz2I7jg+Nhx3TraRWysVhVVJvpB2EXAWMecDR\n Bu9A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775728796; x=1776333596;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=FlkZH1SuQrwakRTOg6E2zmugoAOuiELmZsl+WpaQ39M=;\n b=VeCSCNA+BSOArGp0mKeprI5MPdbvOsBukfXytmCaAgMQWq7pX8UM+7GY+1CoCtOHg+\n bdippR6iT+dTciWF6suPed6ICDECVvhh3rLDeehlU2RdwfVSM7aOldpDjf+6UGdgySjX\n NoyyatP7R8CEV/MMXQZqb5GgXqiSi6bJClcRYc1xbFQ2+Z1n9qFeIUtdr8ilmFnDSbSG\n t77r++m6hITbleGgIAWYWGqjylDMZukVqwz3dVwGefVnfOHOn0ikqsuoz7Tt2329pU/C\n i0RTo1W2ciERr6XWo3iNMTAl/1zcx7ptq+nnhawUSeZNt/5Glkg8uwf/3uPM7cM05quQ\n OhOQ==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCXs1yT9MxR5XF4K0XKy+53WD+UiQvxFxhsu8rKEmbFQKhH/yez2FFSD4OiSrQ+QuwFe0cEu2laWqLRL@vger.kernel.org", "X-Gm-Message-State": "AOJu0Yx4qCTCavT9w/dx1qlgMnZoKzq/Iu/yeQM63LEWAdj/TtOq1tsR\n\t7DRAhWcWXz5CdFOdVId5DUgbqZrYxlyINcjK/kasJ246fjuSf2GcECD1", "X-Gm-Gg": "AeBDies7V6k5VWXdTodbCYyfFEq+jjswhH9RrhKHOA8CrsLNRztPAF6vqQGBBNKosac\n\tYn8UoDKTWcyObabQPVthb/2qT7AjzZ0p0UWllGpyBHgb1NMk4t7Aj8AzGLR9EvdO098wcaIqye6\n\t6mfOMvnAA7PgbRcXK9idczeV8Ld0T03VuGfDKz3gg5Ke9ScTtO2LhXJtt2+QTkZMXI0CrMe5aRP\n\tD70qaF7F/0cJGgbZQ1xAhfjm3UorXjEQ+eKz7z0Yn9Na5VOYpBl2Kd7i9VScbsrhQsDc1HW9An4\n\t5EvIbCDQS0HHGQHpHGcL9iHOSCuXBOpXQkOhxk2q6j0nx2oqpuuTT2lGGqvfTFERpo9Rp0UcDIH\n\txKGKHn98ZSgXaJQ/4Bckteg1f+9SyeUVLOjjEUziHTtkeAw8fgug5K04zBz82e2la2xaa3C+QLb\n\ttFPoDpOnB6WgzzxO9zXaUJ5dWUbRDF3q9SCHI40wNJyXYF2jAtD2FmqnO94DowhmsiAH9kL4a3k\n\twknoB/JE4xXjB+LSD48nUE=", "X-Received": "by 2002:a05:6a00:c86:b0:82c:d92f:3b64 with SMTP id\n d2e1a72fcca58-82dd89c526amr3132952b3a.14.1775728796314;\n Thu, 09 Apr 2026 02:59:56 -0700 (PDT)", "From": "rajasimandalos@gmail.com", "To": "sfrench@samba.org,\n\tlinux-cifs@vger.kernel.org", "Cc": "pc@manguebit.org,\n\tronniesahlberg@gmail.com,\n\tsprasad@microsoft.com,\n\ttom@talpey.com,\n\tmetze@samba.org,\n\tbharathsm@microsoft.com,\n\tsamba-technical@lists.samba.org,\n\tlinux-kernel@vger.kernel.org,\n\tRajasi Mandal <rajasimandal@microsoft.com>", "Subject": "[PATCH 3/9] smb: client: sync tcon-level options on remount", "Date": "Thu, 9 Apr 2026 09:59:20 +0000", "Message-ID": "<20260409095926.905020-3-rajasimandalos@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260409095926.905020-1-rajasimandalos@gmail.com>", "References": "<20260409095926.905020-1-rajasimandalos@gmail.com>", "Precedence": "bulk", "X-Mailing-List": "linux-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "From: Rajasi Mandal <rajasimandal@microsoft.com>\n\nSeveral mount options are stored on each cifs_tcon at mount time but\nsmb3_reconfigure() only updates cifs_sb->ctx. A remount that changes\nany of these options silently has no effect because the runtime code\nreads from the tcon fields, not from the superblock context.\n\nThe affected options and their tcon fields are:\n retry -> tcon->retry\n max_cached_dirs -> tcon->max_cached_dirs\n\nAdd smb3_sync_tcon_opts() which walks the tlink_tree under\ntlink_tree_lock and propagates these values from ctx to every tcon\nunder tc_lock. Call it from smb3_reconfigure() after the context has\nbeen updated.\n\nSigned-off-by: Rajasi Mandal <rajasimandal@microsoft.com>\n---\n fs/smb/client/fs_context.c | 31 +++++++++++++++++++++++++++++++\n 1 file changed, 31 insertions(+)", "diff": "diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c\nindex e1bf7bad5be6..90e83f07c870 100644\n--- a/fs/smb/client/fs_context.c\n+++ b/fs/smb/client/fs_context.c\n@@ -1307,6 +1307,35 @@ static void smb3_sync_ses_chan_max(struct cifs_ses *ses, unsigned int max_channe\n \tspin_unlock(&ses->chan_lock);\n }\n \n+/*\n+ * Synchronize tcon options that are derived from ctx across all tcons\n+ * associated with this superblock. These fields are consulted at runtime\n+ * (reconnect, I/O, unlink/rmdir) so remount needs to update the live\n+ * tcons in addition to cifs_sb->ctx.\n+ */\n+static void smb3_sync_tcon_opts(struct cifs_sb_info *cifs_sb,\n+\t\t\t\tstruct smb3_fs_context *ctx)\n+{\n+\tstruct rb_node *node;\n+\n+\tspin_lock(&cifs_sb->tlink_tree_lock);\n+\tfor (node = rb_first(&cifs_sb->tlink_tree); node; node = rb_next(node)) {\n+\t\tstruct tcon_link *tlink;\n+\t\tstruct cifs_tcon *tcon;\n+\n+\t\ttlink = rb_entry(node, struct tcon_link, tl_rbnode);\n+\t\ttcon = tlink_tcon(tlink);\n+\t\tif (IS_ERR_OR_NULL(tcon))\n+\t\t\tcontinue;\n+\n+\t\tspin_lock(&tcon->tc_lock);\n+\t\ttcon->retry = ctx->retry;\n+\t\ttcon->max_cached_dirs = ctx->max_cached_dirs;\n+\t\tspin_unlock(&tcon->tc_lock);\n+\t}\n+\tspin_unlock(&cifs_sb->tlink_tree_lock);\n+}\n+\n static int smb3_reconfigure(struct fs_context *fc)\n {\n \tstruct smb3_fs_context *ctx = smb3_fc2context(fc);\n@@ -1444,6 +1473,8 @@ static int smb3_reconfigure(struct fs_context *fc)\n \tif (!rc)\n \t\trc = dfs_cache_remount_fs(cifs_sb);\n #endif\n+\tif (!rc)\n+\t\tsmb3_sync_tcon_opts(cifs_sb, cifs_sb->ctx);\n \n \treturn rc;\n }\n", "prefixes": [ "3/9" ] }