get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2221371,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2221371/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260409095926.905020-6-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-6-rajasimandalos@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-09T09:59:23",
    "name": "[6/9] smb: client: allow nolease option to be reconfigured on remount",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "760775b281da5e8c2394c94d5c4d2b563bc54732",
    "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-6-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/2221371/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2221371/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-10735-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=WExFgz4b;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10735-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=\"WExFgz4b\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.215.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 sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::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 4frwcn5wkNz1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 20:08:41 +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 EC4BC30B07BB\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  9 Apr 2026 10:01:32 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D35513BED77;\n\tThu,  9 Apr 2026 10:00:17 +0000 (UTC)",
            "from mail-pg1-f181.google.com (mail-pg1-f181.google.com\n [209.85.215.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 796C63BE17B\n\tfor <linux-cifs@vger.kernel.org>; Thu,  9 Apr 2026 10:00:14 +0000 (UTC)",
            "by mail-pg1-f181.google.com with SMTP id\n 41be03b00d2f7-c742723c863so470697a12.0\n        for <linux-cifs@vger.kernel.org>;\n Thu, 09 Apr 2026 03:00:14 -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.03.00.04\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Thu, 09 Apr 2026 03:00:07 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775728817; cv=none;\n b=YPBIQeifEHN177jgVRtobsm+fsYoGRPuBMbFudJ/th9fnFTTDX1qzT34oFf7rsDeABFLniUr7OlR2ia0QuTc3FHIakhkKC3x0gG/8ohjVu622AwqsjYkAUkUIupTRkGOxyEgQCN2xmgaGyx5McF05EKfj+xPVmtaUpWlsvfFtKE=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775728817; c=relaxed/simple;\n\tbh=iVLJ2lod5R2JDz1cIrkKG1CXH3xzWLlnArZjx/SFbJQ=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=AvF9XFokcrXT9CXZDY35S3DfpUPbFO8uCk1iRX9j80zLyN/yeU8RayCOq0z7/p1M90bfSIv3NPQ7AyyapJEytz6TSFgvbBZOEQAzlvD6LDZS8BtGbUbV/VA/lvVF9gnK0jz1S/woor5+pu0YstWK3kd55yYvsFbVWe0udFPhIqc=",
        "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=WExFgz4b; arc=none smtp.client-ip=209.85.215.181",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1775728813; x=1776333613;\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=jz4zNE+M7pi3tWDtuAf/A5LJVd6SnwS9PUa/d+0Kxas=;\n        b=WExFgz4beBDbnFehO9Tk/QAZeYV+VhHf032DcQA5wNSvYjQl2Pp5lMICgGDcy3S2HN\n         XWVb6u6/PTXySiUli+T7Fgqm4qnzJ3YRtlBFSbDs7CM2ebDVBW+uWE6RaACm9DDkEfL0\n         KWmVpyLzbkxK/XOPNjQuhBtXRgsUvfp5VwNjKv3PbloHDYaEBUcANsFk/nApuzMIb49n\n         vWXkCE02Fr9SLETyroyuVTuQe4IwrO2B6wmIHuPKv6qc/HdJxVswr+j4k9Sikl+SFDhD\n         rMsKrb4ZM4YzG4xbjYZh0UnxgiqTdgDpx9jdSYkqQyQSWs0w2suOaKkGzIQXAQGkoGaC\n         EY0A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1775728813; x=1776333613;\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=jz4zNE+M7pi3tWDtuAf/A5LJVd6SnwS9PUa/d+0Kxas=;\n        b=p0t9p2l2HiY6bYcKuhw5RYfxXsrGXhsW8JKVJPjRSkxR/25BcP39lZDo6VXvcMTqNl\n         Gbn+iI5XwEwGUFpmYh3zt7faAIPrL83YgeU8ZCko1oXnkdU/VJHeRA2EGuwEMO67j5p1\n         hwiZwYuom+HdnIbL+Q4VnNZV2KIb9Czr9VhHu5U8C+19JxVrbqZuemqf3WaqmS7dC/pE\n         1lf9X0rkqipnqa/6jCGu6MVuDHVVuQCDOoaaJ+MOQssEVMKSJE+gr7XBkAMh8LIlsbZU\n         rt65cwzcoLkv/F7VhjVa9Oek6I7mzoPSPfVZGmR1N0q/VMZwg7+20wGejTp96I5VK9xA\n         8fug==",
        "X-Forwarded-Encrypted": "i=1;\n AJvYcCWQfJjCX++QPYW6r+BEsrAHigBvDvVSzu9qSa3EJE2JDXisxcBqAlKlknu4+e5pMPPVxUpsXivH6f3B@vger.kernel.org",
        "X-Gm-Message-State": "AOJu0Yy5eXZ+xKlZhXGSc5oIYIOHvqiYQm0mv0JVnnhLD9LNhDkLWApC\n\tc5Y4sJPq7v6BpyV5Bfb96B6vBr7U67799PMNz8Kv9vpA/pke6XO2+0wR",
        "X-Gm-Gg": "AeBDieukIrk++XOmriv1Z7E1dobXNplKyBhEHmmJKvaIqD6GeHpft1Zkc7z7+5JXeyx\n\tRX3UsFlSA15WPAi5St2cKMCJvyPgJng+TUUwfYF1nEaXWsAdVUkTjuGuUK8uy5h77CK/6rxXjZs\n\tUGwv+90mjTlmM+X8BNwqmKFLQTCTVkGR88jrtF5b5bDiVI2XRg69VEwkXb+ilWjWsmLXlC7t5Oh\n\tst1VLxMI4qyGvKRNtibSmFa2qDMY7P75hQ5aicTFxybblB6GdlpYm+aPEbYkq2lp1jmf7XBrfvL\n\tSjFAA5+k/dANqte3cn7DIXonCQ7ZVnxQ0bHxmjSY4aNaKmeG1vyyjuUODLiqxfNFrA2XET1T7R/\n\tIBZ7Y+h4zQZ6QSIQOrsXRzQPzTXte5zHgsIjWnl0ZpUStg4CcrRr09Ym5UGCJA/1pQTHbXlxaSl\n\tNUyOSsfNEKqzHO9A/8I/sXqO8NPEMs91JfLHEYk0bE1wsjk/pX9t+/L4OmaujruTMDNOdrBYDKK\n\tkkTT3T7i0zRp3JBEUmJncE=",
        "X-Received": "by 2002:a05:6a00:bc0b:b0:829:af4a:5ebc with SMTP id\n d2e1a72fcca58-82d0da284c1mr24255682b3a.7.1775728808218;\n        Thu, 09 Apr 2026 03:00:08 -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 6/9] smb: client: allow nolease option to be reconfigured on\n remount",
        "Date": "Thu,  9 Apr 2026 09:59:23 +0000",
        "Message-ID": "<20260409095926.905020-6-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 nolease mount option (tcon->no_lease) controls whether the client\nrequests oplocks/leases from the server during SMB2 opens.  Previously,\nchanging this option via remount was silently accepted but had no effect\nbecause the value was never synced from the updated ctx to the live tcon.\n\nAdd no_lease to smb3_sync_tcon_opts() so the flag is propagated to all\ntcons on remount, matching the pattern used by retry, nodelete, and\nmax_cached_dirs.\n\nWhen switching to nolease, also close all deferred file handles via\ncifs_close_all_deferred_files(). Deferred handles retain their\noriginal lease from the previous open; without closing them, a\nsubsequent open would reuse the cached handle and inherit the stale\nlease, preventing nolease from taking effect.\n\nBoth transitions are safe:\n - lease -> nolease: deferred handles are force-closed, and future\n   opens get OPLOCK_LEVEL_NONE.\n - nolease -> lease: future opens will request leases; existing\n   uncached files remain uncached until reopened.\n\nOn reconnect, cifs_reopen_file() reads the current tcon->no_lease and\nthe server grants (or not) accordingly, so the per-inode cache state\nis naturally updated.\n\nSigned-off-by: Rajasi Mandal <rajasimandal@microsoft.com>\n---\n fs/smb/client/fs_context.c | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c\nindex 5f0637035172..ce4842e778c4 100644\n--- a/fs/smb/client/fs_context.c\n+++ b/fs/smb/client/fs_context.c\n@@ -1330,8 +1330,12 @@ static void smb3_sync_tcon_opts(struct cifs_sb_info *cifs_sb,\n \n \t\tspin_lock(&tcon->tc_lock);\n \t\ttcon->retry = ctx->retry;\n+\t\ttcon->no_lease = ctx->no_lease;\n \t\ttcon->max_cached_dirs = ctx->max_cached_dirs;\n \t\tspin_unlock(&tcon->tc_lock);\n+\n+\t\tif (ctx->no_lease)\n+\t\t\tcifs_close_all_deferred_files(tcon);\n \t}\n \tspin_unlock(&cifs_sb->tlink_tree_lock);\n }\n",
    "prefixes": [
        "6/9"
    ]
}