get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2223129/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2223129,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223129/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260414135918.279802-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": "<20260414135918.279802-1-sprasad@microsoft.com>",
    "date": "2026-04-14T13:59:12",
    "name": "[1/7] cifs: change_conf needs to be called for session setup",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b911b2ac2561c44f9fee7b6a4a0d24ec382278b0",
    "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/20260414135918.279802-1-sprasad@microsoft.com/mbox/",
    "series": [
        {
            "id": 499852,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499852/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=499852",
            "date": "2026-04-14T13:59:12",
            "name": "[1/7] cifs: change_conf needs to be called for session setup",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499852/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2223129/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2223129/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-10803-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=M2HG51rP;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10803-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=\"M2HG51rP\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.214.181",
            "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 [172.105.105.114])\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 4fw5Vv0lCMz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 23:59:35 +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 6C756302306B\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 13:59:32 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 9E7B03E638C;\n\tTue, 14 Apr 2026 13:59:31 +0000 (UTC)",
            "from mail-pl1-f181.google.com (mail-pl1-f181.google.com\n [209.85.214.181])\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 73F1038BF92\n\tfor <linux-cifs@vger.kernel.org>; Tue, 14 Apr 2026 13:59:30 +0000 (UTC)",
            "by mail-pl1-f181.google.com with SMTP id\n d9443c01a7336-2aae4816912so37223325ad.2\n        for <linux-cifs@vger.kernel.org>;\n Tue, 14 Apr 2026 06:59:30 -0700 (PDT)",
            "from sprasad-dev1.corp.microsoft.com ([167.220.110.184])\n        by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b4612e60dasm59779895ad.38.2026.04.14.06.59.28\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 14 Apr 2026 06:59:28 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776175171; cv=none;\n b=L4niNFXk1gIVl3mCRdZhVkYenhjSB4qnNgR0pRaSL6PO58EZhTHInXU4y6AsNQ4HrTO89r3FAqpbeOd2ny11oq+ExN3EHpI8g1FBAJneKTkkPRMvRozEC6XRIdxCKe62F/EhL9HcCU2SMCiwcVRVyJ+pXNTO78LJSejPgFShO0k=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776175171; c=relaxed/simple;\n\tbh=i7moRks1Em5xSeDJRGmHijtRZlYJUx95CBNBVmpOReA=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=Zch4mH9LJA82DFVCceUaCtJeWe495BRo0/IN8GfHWMHRMGQpyQkyIbfyV9PoqgGRkER58CNoWvLAlbw+9KK6bidU44XEoXZytul5KWrC5r/RK9UAr2tw760oMuKyxTp43/5iG68qg+lPoO5cYT758P3peKXLDa26v1RVeKZpOxo=",
        "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=M2HG51rP; arc=none smtp.client-ip=209.85.214.181",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776175169; x=1776779969;\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=AoTQHgaXiOjxnBKbofO+VMkVOBU/6hoNuKav6Pyb85M=;\n        b=M2HG51rPy/tDYN43P64USexx+GaoGqzvjrq4ZoT9lXF+0jUiLsWtvEBXC5yeV1XDnk\n         0WfwFbAfvcbDEzboxANxSyK25U1yH6REzpL6QfKW95mSPeKCtKeC5KvCbQTOfxcpm46E\n         uGbdVHbXEHN3+w2gghNT90hgZ6zO5PqAO7n40fqSGpHxJmtxfcFyNCFGl3HiKw7d642o\n         Z1/8vjHWWvaq+Hk/YzPd7AUNYhOTkpPApAbKIwrYV1SvU+gAIxKDk7T0xPN2ZCtebfA7\n         ruHMzrw9Z6wn5UqFGBIfqblt7UUMFy2qQpwHO8uBtvrCdYXqrprsl09kX63vhmZ5MIY0\n         qH5Q==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776175169; x=1776779969;\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=AoTQHgaXiOjxnBKbofO+VMkVOBU/6hoNuKav6Pyb85M=;\n        b=Ts7WljMOTHg/QuEW/phGd0TGm2yo6W+cnqHKoCTr4LieXbpk/hdlFqWrPQdlhIC+JA\n         CV5elM2ozeKhYhoBXvYSbEIg8xBCW8jmtrxxc+1HQtrNLBFPuQlgIbsXkSOI5QcWNgxU\n         +aN6OQXlJAd0f2CxzWTyYJ1O+D/Ii2Y19kEt2Yaa24tyf5rjNYcp0Lp73nqjl0Kw4EMy\n         i5IJxMcx3ejc4BBs1/f+d5YZrK3kI3WQd3EZyJYe7lMCCZF8cvu+im5e42OWfJL+d44N\n         sA7OBBcxSiotsRUQW6hbog75INB+Q+eWFbC50WtK30H+dX+2IgBGOjTEM33816KT+ire\n         OCyQ==",
        "X-Gm-Message-State": "AOJu0YxjXIPGI3ZwzxMZNO56dsn2Yta8Xgh9D0rqQLbVzWT29pHhzMNL\n\tZOvnCikgVa8hggwWzxrDDAPyhz1YcTlsagK7V6R/5M0zW2mFTtIQqEAc3eMEChLP",
        "X-Gm-Gg": "AeBDieuVsa+z5OLE+SjwDijAAYyz70ufh7C5Bw6lWzygIDNZUNbtUy/l0u2O6CmFI0r\n\tXR0lKNYBZPrW+4sOHz+mLXpjeTs55tSAQiQjA5UYcIUwosZBCKHc6ttXCloyC7vXAynFbTwpxjT\n\t37wuhuZxgel6PZNTHNLNtK4HHLPyj6yrryzeWGrgJruoNkHEoD44T8fDmiwZbIzQ/qo0mIRPOqg\n\tOJjKI7VwGq2pvtcBDVD3RBxsNzjB2QmSUJeHl2SxFw/N/s1PnZ34sr2/9JIWZB2myODxY0kB6ZY\n\tCID4cMkJLoh6mScC+5LNpxtPzIcvbiR6/dQCjM02SaYCmqG3X5Pvd5OQuKNhXgW75vbfucJu3d4\n\tgMIb7Cc3eBiMGh8tuFWvUMs0dBQLrzGoaiWrud7qXmbrhcAUkZaAWZBsrBTErQnOrVqTASYqmkR\n\tz/9EWzw8mWMVUnu3Cl68Kh7zBZaj15EWf96b6QTXmjzXq/H9nNv2HWodl66RXDW1Q=",
        "X-Received": "by 2002:a17:903:3c30:b0:2b4:5f69:715d with SMTP id\n d9443c01a7336-2b45f697b4bmr82943705ad.25.1776175169402;\n        Tue, 14 Apr 2026 06:59:29 -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.com,\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 1/7] cifs: change_conf needs to be called for session setup",
        "Date": "Tue, 14 Apr 2026 19:29:12 +0530",
        "Message-ID": "<20260414135918.279802-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 for the last session setup\nresponse, so that echoes and oplocks are not disabled before the\nfirst request to the server. So if that first request is an open,\nit does not need to disable requesting leases.\n\nCc: <stable@vger.kernel.org>\nSigned-off-by: Shyam Prasad N <sprasad@microsoft.com>\n---\n fs/smb/client/smb2ops.c | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/fs/smb/client/smb2ops.c b/fs/smb/client/smb2ops.c\nindex 509fcea28a429..3625030d1912f 100644\n--- a/fs/smb/client/smb2ops.c\n+++ b/fs/smb/client/smb2ops.c\n@@ -111,10 +111,19 @@ 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 server actually granted positive credits (>2) so a\n+\t * newly established secondary channel can reserve echo/oplock credits.\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) && add > 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": [
        "1/7"
    ]
}