Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2221369/?format=api
{ "id": 2221369, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221369/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260409095926.905020-4-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-4-rajasimandalos@gmail.com>", "list_archive_url": null, "date": "2026-04-09T09:59:21", "name": "[4/9] smb: client: sync retrans on remount", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1983084b8f2c984d06a8512c6259186fb5bf5a7e", "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-4-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/2221369/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221369/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-10732-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=BHxpXfMb;\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-10732-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=\"BHxpXfMb\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.178", "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 4frwbx3kdsz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 20:07:57 +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 E0EC930D3A41\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 9 Apr 2026 10:00:51 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id CF1CE3ACA4B;\n\tThu, 9 Apr 2026 10:00:07 +0000 (UTC)", "from mail-pf1-f178.google.com (mail-pf1-f178.google.com\n [209.85.210.178])\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 CF18140DFD8\n\tfor <linux-cifs@vger.kernel.org>; Thu, 9 Apr 2026 10:00:03 +0000 (UTC)", "by mail-pf1-f178.google.com with SMTP id\n d2e1a72fcca58-82cf96ca071so372211b3a.1\n for <linux-cifs@vger.kernel.org>;\n Thu, 09 Apr 2026 03:00:02 -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.56\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 09 Apr 2026 02:59:59 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775728807; cv=none;\n b=qy8YtyT+NO78E8jIhXSEhw2106FjnHMGPUr6z16QYq5m+x7Q3tJpuYvqQKbAqx2txHe3ADzvWJ4ySlAv3S3kmqIZBiYz+bRKrNp9mrxV/GWE8JW+8K3Bggu2UScDMzSR+8AlK/5jzv+QRapgqtVTX34xx9tXD4mQC3eEdJ6Mn8M=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775728807; c=relaxed/simple;\n\tbh=FJvQA8MuAcOh6TW2OKa4PlnjZIpQv+MvTWNJtTa0wb4=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=nFDR93RvOMIdtzkFUod9OucVm4Skb6Ux+3WqmM4u+ujCIIM1uR603jcXmGuPXzQc5tnoV6kJ8j5ed1a1gv3Zk2nPjegYEHGOV34HeEFlw9Y3QQ+0ycDWn35qcn+0QtOh66tad4oyCclM/ZZkR42GrYtMSVCo5PfWIPN/gXbTQso=", "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=BHxpXfMb; arc=none smtp.client-ip=209.85.210.178", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775728800; x=1776333600;\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=mDxowHKiU8yEvUkG0ExyLUfpwERX0ltYh/rUSG2zFlo=;\n b=BHxpXfMbgFU1vPFnrRihFA6mXShnKpZ0lloYAp8CYOPBOwTmQw6hG6emZyNEB1cXC5\n hJ4Ar3rtAh0MtEDxs4Nv3E7sXpuP14IXRPJHHfkdz9Y58xDzOU/0rowz7YiXltAFp7WJ\n 8G7XPN3rucZ9cX2kxJaA6GrW99AXresKnqlj3jswZM2L3U9ZKDqfiDk/r+z7dPfVHFht\n TXbORxUI3eCHIvxiF5uxEHNO9RWB/FyNVx/wWPAkndB89rATfk49eSI04ZjuxEpcAkro\n a7LMoOlFKcntYnQUOTqQmJvHs+KkgQ//7XWIOSPcb2DGYBmaHCLDV80w4W9vhCa81MZQ\n +gxg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775728800; x=1776333600;\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=mDxowHKiU8yEvUkG0ExyLUfpwERX0ltYh/rUSG2zFlo=;\n b=hgL/+JjRiR55Xm2TRFy2KWuk3oxxEyPrnTeZQvbRCcfePAU5gNMBloGQ71ouTgqMR/\n eLQyZqZKApcnyG2+qQJodPCf9NuXyJ6lvyVnfB0fMLCJ006N+9j0D0PJXXQRhq8212by\n 2wdundgC3FxdOHS9HxahpS+ZWWzAK6gpRveqatbsB7Gs8kKEQ4bgrp2x1KqIfJRpYq8a\n XMIViYX2MR+IyatcqZxlOFDwvjBR5h3zmChFzXZD72LrragcDOkLr+kgPTXhoxPKJzWT\n BzuqOLdxJ3QUCAgWMQ8kwAkI2t3+6TGnR6i+TFDpnrzKGk5AdTH+YhtAj02n3k61ti4n\n IECg==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCWQTZFvov9JOYqDDbvd6eUGLvKWJiXBTmrXUxsWJj9hB/Dwb3nRp5tF76D8jqkU+CWztw8EE4v8AOLj@vger.kernel.org", "X-Gm-Message-State": "AOJu0YyQXgug6BDx5xbu4e+XUHWEa6fbB0cr31jQ/gY1ShVvA3sNt0cX\n\tUZr6xpqQKAApHzSuFZasa6gpWtbj0lUxYc+NSL2fAWC8wuBo2pY6VUXV", "X-Gm-Gg": "AeBDieuD1LQVDlwNMdb62L9sD3iUvmB1brnn39t55iPFchgRstRhkRYrEIOqFx/nKnm\n\tuik3qjldMsnszJx4bfZl/In1gVLrnWRyTQIG4M/9s1qFtx0bV8/i1Aeb5AEkLOogoLpBqIfcV/+\n\t8a40W42TTcOrcHsDxB5meYShyINf0WMkYbvevzyuykePtDMKtWF37l6nqYS0SaWI5Bf42Zn7Bun\n\t+pYPSSZBANPHuMELXDZEcZBNEQTlUdhYqIUTPeWI2+kc+g75oinDVOqSRg0OxQ635i0oW8jNceE\n\tpMCL2PDjgqFx7otLtbimABFEyKIC+oBr2mfdaA40jw0RxDFKqRl1JrkPjY0ONABDlBv1QWFBdNc\n\t8tBTAysP0mpfBwpEjbTyfsDqllImXCS1arfxMawd9Lu4SxndQdCQO4cGn8unLMQ67EnthrN1UIq\n\t3Po6y7Y6UuXFmTMhQ6B8CMq90pYofoY92/+ujd08NtLapB7dqlmMac62yN0tbpyMdX1sSdghJEL\n\tko4viMmSGIRuGCTrqEgVTlkExaLkxyuzg==", "X-Received": "by 2002:a05:6a00:1acb:b0:82c:d9d0:f482 with SMTP id\n d2e1a72fcca58-82dd8ad4a09mr2845776b3a.46.1775728800090;\n Thu, 09 Apr 2026 03:00:00 -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 4/9] smb: client: sync retrans on remount", "Date": "Thu, 9 Apr 2026 09:59:21 +0000", "Message-ID": "<20260409095926.905020-4-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\nThe retrans mount option controls how many times the client retries\nsending a request before giving up. Although remount already stored\nthe new value in cifs_sb->ctx, it was never propagated to\nserver->retrans, so the running connection kept using the old count.\n\nIntroduce smb3_sync_server_opts() to push ctx options that live on\nTCP_Server_Info into the live server struct after a successful\nremount. For now it handles retrans; subsequent patches will extend\nit to other server-level knobs.\n\nThe assignment is guarded (if ctx->retrans) so that a bare\n'mount -o remount' (which re-parses /proc/mounts and gets\nretrans=0 because cifs_show_options does not print it) does not\naccidentally reset the value to zero.\n\nSigned-off-by: Rajasi Mandal <rajasimandal@microsoft.com>\n---\n fs/smb/client/fs_context.c | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)", "diff": "diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c\nindex 90e83f07c870..31b82f8f7ead 100644\n--- a/fs/smb/client/fs_context.c\n+++ b/fs/smb/client/fs_context.c\n@@ -1336,6 +1336,21 @@ static void smb3_sync_tcon_opts(struct cifs_sb_info *cifs_sb,\n \tspin_unlock(&cifs_sb->tlink_tree_lock);\n }\n \n+/*\n+ * Synchronize server-level options that are stored on TCP_Server_Info\n+ * at mount time. These fields are consulted at runtime (retry logic)\n+ * so remount needs to update the live server struct in addition to\n+ * cifs_sb->ctx.\n+ */\n+static void smb3_sync_server_opts(struct cifs_sb_info *cifs_sb)\n+{\n+\tstruct TCP_Server_Info *server = cifs_sb_master_tcon(cifs_sb)->ses->server;\n+\tstruct smb3_fs_context *ctx = cifs_sb->ctx;\n+\n+\tif (ctx->retrans)\n+\t\tserver->retrans = ctx->retrans;\n+}\n+\n static int smb3_reconfigure(struct fs_context *fc)\n {\n \tstruct smb3_fs_context *ctx = smb3_fc2context(fc);\n@@ -1475,6 +1490,8 @@ static int smb3_reconfigure(struct fs_context *fc)\n #endif\n \tif (!rc)\n \t\tsmb3_sync_tcon_opts(cifs_sb, cifs_sb->ctx);\n+\tif (!rc)\n+\t\tsmb3_sync_server_opts(cifs_sb);\n \n \treturn rc;\n }\n", "prefixes": [ "4/9" ] }