Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229719/?format=api
{ "id": 2229719, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229719/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260428160804.281745-1-sprasad@microsoft.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/1.1/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": "" }, "msgid": "<20260428160804.281745-1-sprasad@microsoft.com>", "date": "2026-04-28T16:07:46", "name": "[v3,01/19] cifs: change_conf needs to be called for session setup", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "52b185fe4def203da5f27c0a2eb8a2e622f28502", "submitter": { "id": 79368, "url": "http://patchwork.ozlabs.org/api/1.1/people/79368/?format=api", "name": "Shyam Prasad N", "email": "nspmangalore@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260428160804.281745-1-sprasad@microsoft.com/mbox/", "series": [ { "id": 501896, "url": "http://patchwork.ozlabs.org/api/1.1/series/501896/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501896", "date": "2026-04-28T16:07:57", "name": "[v3,01/19] cifs: change_conf needs to be called for session setup", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/501896/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229719/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229719/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-cifs+bounces-11238-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=jVdewnI+;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11238-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=\"jVdewnI+\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.54", "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 tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\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 4g4m834Rcqz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 02:28:19 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id E945031927FF\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:14:30 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F077844A71C;\n\tTue, 28 Apr 2026 16:08:22 +0000 (UTC)", "from mail-pj1-f54.google.com (mail-pj1-f54.google.com\n [209.85.216.54])\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 A436744BC9F\n\tfor <linux-cifs@vger.kernel.org>; Tue, 28 Apr 2026 16:08:21 +0000 (UTC)", "by mail-pj1-f54.google.com with SMTP id\n 98e67ed59e1d1-35e576110adso8061652a91.0\n for <linux-cifs@vger.kernel.org>;\n Tue, 28 Apr 2026 09:08:21 -0700 (PDT)", "from sprasad-dev1.corp.microsoft.com ([167.220.110.216])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b97ac7894csm30864465ad.50.2026.04.28.09.08.19\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 09:08:19 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777392502; cv=none;\n b=Fwv/pX87poAOXDH6XF7D5IxPPkySkAvPOGh9E/dNOzLPLnnaBB584WrsPyh11fH0Dorv9L5Wji3PVXOPD0mou3KIXkui1L0ufAHm5oaIErcuUYIU4eSvLnoF0hRZZ7U08RWGl7HGMcYlMlIuj+lmh1eB7i+lHGz1brXVHtWwhQ4=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777392502; c=relaxed/simple;\n\tbh=eG9ghrqyHv+FTgYWiTsJuJFnXKn0gQTXBQyL1yWQTYk=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=OgiX600xL91iK9POgGqBbDWEJahsh9+Flye+V8kT97b2XZ54M8SClJLFDS/ZdqBbkmnY33bI8CUGaOgf3udxElaywH6H8QgMU/ygl1qaixRMzXjbQwYHgfX3khikXvTRl7xpnAtqrDW5VOxMwbkBq7CKBLtPTsIN7XzfjyVlmvo=", "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=jVdewnI+; arc=none smtp.client-ip=209.85.216.54", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777392501; x=1777997301;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=k085XqsDoPGBdb9RzNl+RVKDoAd53m9lIegek7QU+Yc=;\n b=jVdewnI+emo4vuLxuv0R0wNaG70YNoIyCaqSlsWYXMqK06tq1A8BNQjU/JhbJNDaHs\n oNdgYlZnueHN8PcP8VU8/M6SyNPNfqMsrByxnfySxmVmFaJDepUfzJUjodUZSLDfH2H2\n JzPW+Cgqs+9y9vprTiUs86esSpS/mBZ6tW9iq8Ks0VcQMIhx/Hc0J/4tPTyxulI2Hqz6\n Q/rqQXerJE3L3y7i/Oc3EBdAMLagFcgtf93qnw7WMKoHKwNf8/ekad5jt8GhQpwsa4nY\n wlBPBJn3zCFTiB+D6uiaCjdeBdTjDNcYzmqq0k8GwqVpxnY6HKe34Gi0rH9uGP8sOTjy\n er6A==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777392501; x=1777997301;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=k085XqsDoPGBdb9RzNl+RVKDoAd53m9lIegek7QU+Yc=;\n b=hM5UY3dkvIK8s3eVnlw3ofYsFcSRCiE63McVq7Ze7TxyLeQItMjc8g74+spUwGgyYU\n DCCv8ghq+aMIfZF1tLHVuZfOIx7/AxFKcAAEL03JyE53AUcvVtekh3LHGSvZMQLv3aRr\n eDkWUHF9g1RqUtwm5dI8Xi+nuK20b9v9/iZpYnJyK+YYDDphg0Xcb3JVb2CWAlj31GVn\n 7ZlZkbt5r8C4/hxBN8W4j7Mx0b8ZLMoUgdwVqxqKRJMB3nsSRPIGYl6uQdWesLmE4npD\n 65uKiwEbEkpryiPA8EJ99u3iWeiG7+M5II2pBCFWc+zOTorCP8gyTPEPals4M3DDkyYe\n Ctyw==", "X-Gm-Message-State": "AOJu0YwxpmTImClwt6qAm0N1MLOeBhWSmuDJYY6fvCsQ4LaFPW7xZgrB\n\tcxWHDgFfzbp+U4IKAdJks1JvAsrp/tigng46mIs7Tz6OSry1sCj1nLYBPrn4O86i", "X-Gm-Gg": "AeBDievFcBbWhCktIMzRjq4CszM9SSUh8Ahq7kBztQbPqQqB7LBWSaNAIcToB7xOgzX\n\twqAML3LnQMQY5mmUKQxEPmMI5IcIu3+NoIUxKLW4hrwgq028ulErUMdcaq72z53TdIa5RnCtmDi\n\t/TFNv0ry4FHWBPYN+g6aV/9W20FSsBEbccUFK6IL41gvYYbYl4qfOswAQZubSjGO7hL3/sjLBOM\n\tMaXrliNPYMSMFdAISHFmPCFcO9cTq18jrRIozeWTUd6/2lyG4ogsDDjQvRZafcu8/cIlTeJLegG\n\tdY/vwT89R+lH3J5ypY/NoFpL1jPdRjX9cm5WCCBHhzE6J2cAuGalOCLomHmL5TQUdLiviGCKjTh\n\t1MqslRIiLtb4aZlg6xlAm8QK88OR6drBVGFM1mgUqs9Z5vhWZiP+hn2nw7xT9dPcmC9M9JBnSMs\n\tD4bx8G+ngz5nJLDr9QdClTnSwxccsw38BGYAviJA7bX9DQFEaf13XMPtJlc7jqjfwO", "X-Received": "by 2002:a17:90b:48c5:b0:35b:e4d4:8290 with SMTP id\n 98e67ed59e1d1-36491abd42emr3672699a91.9.1777392500390;\n Tue, 28 Apr 2026 09:08:20 -0700 (PDT)", "From": "nspmangalore@gmail.com", "X-Google-Original-From": "sprasad@microsoft.com", "To": "linux-cifs@vger.kernel.org,\n\tsmfrench@gmail.com,\n\tpc@manguebit.org,\n\tbharathsm@microsoft.com,\n\tdhowells@redhat.com,\n\thenrique.carvalho@suse.com,\n\tematsumiya@suse.de", "Cc": "Shyam Prasad N <sprasad@microsoft.com>,\n\tstable@vger.kernel.org", "Subject": "[PATCH v3 01/19] cifs: change_conf needs to be called for session\n setup", "Date": "Tue, 28 Apr 2026 21:37:46 +0530", "Message-ID": "<20260428160804.281745-1-sprasad@microsoft.com>", "X-Mailer": "git-send-email 2.43.0", "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: Shyam Prasad N <sprasad@microsoft.com>\n\nToday we skip calling change_conf for negotiates and session setup\nrequests. This can be a problem for mchan as the immediate next call\nafter session setup could be due to an I/O that is made on the\nmount point. For single channel, this is not a problem as\nthere will be several calls after setting up session.\n\nThis change enforces calling change_conf when the total credits contain\nenough for reservations for echoes and oplocks. We expect this to happen\nduring the last session setup response. This way, echoes and oplocks are\nnot disabled before the first request to the server. So if that first\nrequest is an open, it does not need to disable requesting leases.\n\nCc: <stable@vger.kernel.org>\nReviewed-by: Bharath SM <bharathsm@microsoft.com>\nSigned-off-by: Shyam Prasad N <sprasad@microsoft.com>\n---\n fs/smb/client/smb2ops.c | 11 +++++++++++\n 1 file changed, 11 insertions(+)", "diff": "diff --git a/fs/smb/client/smb2ops.c b/fs/smb/client/smb2ops.c\nindex 509fcea28a429..a9d68e5fcea91 100644\n--- a/fs/smb/client/smb2ops.c\n+++ b/fs/smb/client/smb2ops.c\n@@ -111,10 +111,21 @@ smb2_add_credits(struct TCP_Server_Info *server,\n \t\t\t\t cifs_trace_rw_credits_zero_in_flight);\n \t}\n \tserver->in_flight--;\n+\n+\t/*\n+\t * Rebalance credits when an op drains in_flight. For session setup,\n+\t * do this only when the total accumulated credits are high enough (>2)\n+\t * so that a newly established secondary channel can reserve credits for\n+\t * echoes and oplocks. We expect this to happen at the end of the final\n+\t * session setup response.\n+\t */\n \tif (server->in_flight == 0 &&\n \t ((optype & CIFS_OP_MASK) != CIFS_NEG_OP) &&\n \t ((optype & CIFS_OP_MASK) != CIFS_SESS_OP))\n \t\trc = change_conf(server);\n+\telse if (server->in_flight == 0 &&\n+\t\t ((optype & CIFS_OP_MASK) == CIFS_SESS_OP) && *val > 2)\n+\t\trc = change_conf(server);\n \t/*\n \t * Sometimes server returns 0 credits on oplock break ack - we need to\n \t * rebalance credits in this case.\n", "prefixes": [ "v3", "01/19" ] }