{"id":2234251,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2234251/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260507134448.168602-4-rajasimandalos@gmail.com/","project":{"id":12,"url":"http://patchwork.ozlabs.org/api/1.2/projects/12/?format=json","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":"<20260507134448.168602-4-rajasimandalos@gmail.com>","list_archive_url":null,"date":"2026-05-07T13:44:43","name":"[v2,3/8] smb: client: sync retrans on remount","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"e5d52a4c3a321a9e615344bfc7de101a6c7814fe","submitter":{"id":91740,"url":"http://patchwork.ozlabs.org/api/1.2/people/91740/?format=json","name":"RAJASI MANDAL","email":"rajasimandalos@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260507134448.168602-4-rajasimandalos@gmail.com/mbox/","series":[{"id":503184,"url":"http://patchwork.ozlabs.org/api/1.2/series/503184/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=503184","date":"2026-05-07T13:44:40","name":"Remount patches v2","version":2,"mbox":"http://patchwork.ozlabs.org/series/503184/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2234251/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2234251/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <linux-cifs+bounces-11412-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=r5khwji3;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11412-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=\"r5khwji3\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.47","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 sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4gBD5d2hcLz1yM5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 07 May 2026 23:45:09 +1000 (AEST)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 2B88D30058D8\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  7 May 2026 13:45:06 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id C8A3A3C661D;\n\tThu,  7 May 2026 13:45:05 +0000 (UTC)","from mail-pj1-f47.google.com (mail-pj1-f47.google.com\n [209.85.216.47])\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 778993876C3\n\tfor <linux-cifs@vger.kernel.org>; Thu,  7 May 2026 13:45:04 +0000 (UTC)","by mail-pj1-f47.google.com with SMTP id\n 98e67ed59e1d1-364c5317d67so869986a91.2\n        for <linux-cifs@vger.kernel.org>;\n Thu, 07 May 2026 06:45:04 -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 98e67ed59e1d1-365b4c8a8e7sm8316609a91.13.2026.05.07.06.45.00\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Thu, 07 May 2026 06:45:02 -0700 (PDT)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778161505; cv=none;\n b=l1lmEBxACqhXTaPmFLBJCkUr1VCt2jFh4wSM+YsMIINRMFVjbzkttCJvVLGlRmad9dkN2KypY+b66kCjZfxdg9Q5en7+2WYmq1z/9wrafWZjKiQ3zRuZeZlpuHfnZauDFuVQ4px/uxqTArVxmvSWVgQpmDfzUKPOHKuKsCLsivM=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778161505; c=relaxed/simple;\n\tbh=mBrIPsQn2200blVCRje5Sn1az2PJGyMV6oZGfbfx9rg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=WJe7Ihayw1semz8oVMuAc6lLp5I58K9xjW2vMg8lUFTdidzTqt2bgn/tOu9EPNZ0oTFxoJyNUIu1MOJRGijHoPGBFzf63uJmuN8nTLf/h3gFm2NPhy3vt8W6U2bNKvksd22BPJmTteLhlMj7wDsoi7DgtSaDO32MfUCoVI0vUqM=","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=r5khwji3; arc=none smtp.client-ip=209.85.216.47","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1778161503; x=1778766303;\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=G4prNkElwy3XcOJK7RHKYQB456SeJfycmRsfTY5hl4I=;\n        b=r5khwji36jPLlt8ZWiU5uLmSfCiwq6SHlxagLZVMbU+Tpnv6PZXyoyHLViwzsVj1Lq\n         5z5aApfq/ZAq6STkVb/Wy6UqBYVBPJrm9VRHgkArH4fIfjk36txqTcqEO4LYeYn6q7VJ\n         O3S8a4xuAceAUTt/Yv3r47sHTanO3jRpRaXyaM/Js4pwRxqf5NxSPdsbwFdKEf8gr1nu\n         WnERWrMQVpKUb+ub+hIuh9qNjdKfeKfC5sMcCkoyPZpnQeRxfW8QoPICT/ezvIk5yQ9B\n         4o4EDKBS5aYwItlSvMW6q4HFOYVv4iwB43vYLsu+6HTrL6VllpNLAKXJ3Y0gKCVRhyEz\n         MTSQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1778161503; x=1778766303;\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=G4prNkElwy3XcOJK7RHKYQB456SeJfycmRsfTY5hl4I=;\n        b=DIsBgVUZsc2Jo8H6lxlCLN+aECbm0mF/4EpcUsu7JZFpRNCe6U+cojhxL0znnOpxwJ\n         Qg8iyVR1K6KgkcZWdYIlEDCJriVgcyuk3Y72pKr+e14KPj2+ZzBuN2CMSeEMs/NZh7Jc\n         m83jOv3VU+b9yqttsZ2dsUOO8u6FbT1M1KMvs0QuIJYOxFqAzoOrBnI7nyPd4Ksh6COi\n         vwKO5mFN0gN+reJ1GlVJbIfyKCR42ScbqDyZT+2iYHEyU+2Z0BXXzV4kPXlsklF0QnmR\n         x2U02ZNBYaxCyIANqtue7HJku/N6bl48BGhtSpsalbpXIFC6gy5XXRexIGOnZajiCNSV\n         CJ+g==","X-Gm-Message-State":"AOJu0Yxm2r0KqSb6syXEqY0K5lWacUQYCZmwEGUVdz4Ckfd2RqVbbVCL\n\tKBnZQQxo1JKxhfSUjY0hiR2j34/GdLIgYCozhwbAP6jpgj/wKkTW+GVNaHhXRw==","X-Gm-Gg":"AeBDietr4PbUeY8MHVexZ0OJtVl3w5d4LC20p0vZ5nGisdPj7pFpvVb1vL26XSwgNPB\n\t9PTwlGGPt0/PB6yfcRhxBsX3CvTbxcDZrgd5ffFBouWgGuy3q+Rfrk2DwtSRTCB34qUd9N4ysFH\n\t6i16DobXWpHg3znQshVqyF+yfOjp8X6pG5etv+MwoNcYY8Aw3JbHq2hwo92UiVs+QI2NNg9K/VT\n\tNVxvfsTDZ1VaSszDUj1UD7zopuaxHvzL67vXBvd1HoviBgpZN956+DsJ9w3TmSvoQ4n6OBQD6EO\n\tvhIIi7RZnQFSEm9Nhy+OXelr01XMMa8iCnmCphfnn8lch060s1jVVw+5HiDAhWlQ36X8Urx2vjZ\n\tjsKYlSx/11gpEvbqqXbR8wfyn08FvwP5p0UdQTR4j16hVii91q8p/prJNA520AJtUHkPq9BLZ5F\n\tuA+Kf+nRThQOYLcmgxogV7dBAPTUOpKv8KKHMFid0a5Y5j6Sfbbu1p2ABo21ZUiw7YVyEku1owr\n\tpttfwsnCGSrKwz4tAsGekvnI1/586BtPg==","X-Received":"by 2002:a17:90b:3c42:b0:35c:30a8:330 with SMTP id\n 98e67ed59e1d1-365aa73d260mr8680130a91.0.1778161503150;\n        Thu, 07 May 2026 06:45:03 -0700 (PDT)","From":"rajasimandalos@gmail.com","To":"linux-cifs@vger.kernel.org","Cc":"smfrench@gmail.com,\n\tpc@manguebit.org,\n\tsprasad@microsoft.com,\n\tbharathsm@microsoft.com,\n\tenzo@kernel.org","Subject":"[PATCH v2 3/8] smb: client: sync retrans on remount","Date":"Thu,  7 May 2026 13:44:43 +0000","Message-ID":"<20260507134448.168602-4-rajasimandalos@gmail.com>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20260507134448.168602-1-rajasimandalos@gmail.com>","References":"<20260507134448.168602-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 | 19 +++++++++++++++++++\n 1 file changed, 19 insertions(+)","diff":"diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c\nindex 20c17f7cbbf8..de682a5d2b68 100644\n--- a/fs/smb/client/fs_context.c\n+++ b/fs/smb/client/fs_context.c\n@@ -1296,6 +1296,23 @@ 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+\tspin_lock(&server->srv_lock);\n+\tif (ctx->retrans)\n+\t\tserver->retrans = ctx->retrans;\n+\tspin_unlock(&server->srv_lock);\n+}\n+\n static int smb3_reconfigure(struct fs_context *fc)\n {\n \tstruct smb3_fs_context *ctx = smb3_fc2context(fc);\n@@ -1431,6 +1448,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":["v2","3/8"]}