get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2234257,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2234257/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260507134448.168602-8-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": "<20260507134448.168602-8-rajasimandalos@gmail.com>",
    "list_archive_url": null,
    "date": "2026-05-07T13:44:47",
    "name": "[v2,7/8] smb: client: block cache=ro and cache=singleclient on remount",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "b65fd19c5b2b5d7da07048555e88aa9c1a3190cf",
    "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/20260507134448.168602-8-rajasimandalos@gmail.com/mbox/",
    "series": [
        {
            "id": 503184,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/503184/?format=api",
            "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/2234257/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2234257/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11416-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=T7prRjFu;\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-11416-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=\"T7prRjFu\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.43",
            "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 4gBD7q0w1rz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 07 May 2026 23:47:03 +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 7C41730574A4\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  7 May 2026 13:45:18 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B71DA3B6BF0;\n\tThu,  7 May 2026 13:45:17 +0000 (UTC)",
            "from mail-pj1-f43.google.com (mail-pj1-f43.google.com\n [209.85.216.43])\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 8220034A799\n\tfor <linux-cifs@vger.kernel.org>; Thu,  7 May 2026 13:45:16 +0000 (UTC)",
            "by mail-pj1-f43.google.com with SMTP id\n 98e67ed59e1d1-365212191f6so619990a91.3\n        for <linux-cifs@vger.kernel.org>;\n Thu, 07 May 2026 06:45:16 -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.12\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Thu, 07 May 2026 06:45:14 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1778161517; cv=none;\n b=S0j3AFV1qtqBTNMAET7Li/8xNHPwRB87xEYE/J7U31EBb9YLT2RcsRWAAfPev5ubbRZvvknX0W73ov5BjbIXa5m5WmpHobFJlpdxKVH27Tv9eHDWLXVQqOjtJUr4mUkbwFZdKYkEkCrfPPAiE1+tkmbAaqsJnYxg47NtQsQzZeM=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1778161517; c=relaxed/simple;\n\tbh=H/TmBncLOcxFuwc0tet6DqnEMFhA5f6x3Hxc7FRYcZ0=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=GNTTWmWIajx00qhnmQ5NAw9qJA/LkFBJlBxGLlMF/zR94ijJCgUndoYPmkdHR5/tZ7fH8lhUD7AF5CJcZBTWeNN1otiUXuFPtxB9DyzfFHZDaW4hrew5X4iKbJ1jfsMFCgr1IpxGD0eLu5cz9vajkyUE1/cJtVoJBPSJTbXufQk=",
        "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=T7prRjFu; arc=none smtp.client-ip=209.85.216.43",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1778161515; x=1778766315;\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=V6v+/rdiPCutLxy/3nZlBfdgZyD1Ljc5FShzNpAtPBs=;\n        b=T7prRjFuBwqJbECSIMOUbqpieJizHHoLZO64ZmIYYpZ5Gs1ZIo3G1dnqSLTj++/R4A\n         WZq2HUtv+JfpjzOpmnVAPN04XxNpUF6yTjrAhXHhvIu7FvFHYeRpoyA/QiVtEGIH0rLu\n         yxz2o2+lto1n8W2oW6SG79kvFuCmTWVBxbw4pIngSuspxy6P7UWnNa4nbZFMr7CbmnUy\n         fuEIj/M++Tfr1b3iUfAHiGcPy7Zo7ZlWHymaiaRtZd6vbVs44gYYDvdEY3sJ0dXtTgwG\n         GYiQeRnf1KkcoxbuLxNk885rS0JfehUwh+fGywWh/EE5wESu+/NlvWgNg+QfK6N7kB1J\n         p68A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1778161515; x=1778766315;\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=V6v+/rdiPCutLxy/3nZlBfdgZyD1Ljc5FShzNpAtPBs=;\n        b=g6yazTpxS2Kjaqs18s5AIE9VWu2zMtKKeU2tWwItTgSgX3N8lyEMh17Uft+N+wUcQh\n         HjKtsYi9dzHmr5injZEOxfm2oqB7i9uW3+9QPCn9tTHiJU1dKM3SzVDYn9HZpBzdmcej\n         MrcU2KR51peONydbAPNVCYQRhl0wDG6dOKYdNRBApXnWYLcJegJjcKUoSgE9qyVohg8q\n         /L+rM7OWIHZdMHfp1MzcnrPBeC1mpuw2JmusHJ1oyhfcxDT6rWtW3QQ9NS6TzJNoX3CH\n         zTzNtoeIiBKyjC1hgjO4Qc6WxR7iyOZa/ooOS0XLSXxyHwDGkFhxwNtjnAp+FAoBEPvq\n         u1lw==",
        "X-Gm-Message-State": "AOJu0Yws5AMFOwKJoMLwf1/4xAUw9i/nszr7oOwmEDVs/DCai6MYUz2E\n\tDdEjbiJ49+3BZywtXNcA/MnnSBNAPNIhW1WCVCPCnlYWrExVR25Zyso6owoaDg==",
        "X-Gm-Gg": "AeBDies7clABnwk8BoV+38hXT5lM4vDtrBo4LFtAQfKKwao01piTJXIRn470EFoJQIf\n\tVDPeQuvL2f/pvTb9UzodchdwwZNbyvE6POsZ2u7rkDVF1ae8uiZ2IWnA4ISiA4jtQCSk/5jp4Gw\n\ttEIbRnn8N9yAQ42i6airTHcFSBZ/A5LdtZOicPIOHcRRFMlZ7FrQNuh4Vf4jEsWIR5vazJm6kRV\n\tSvf6lQX9QS4QFcXJffc5pwihQqyM3WUduCFbVG/lbtypjP5asPJFFGyDP2z5jiacE3+GKhWG1dg\n\tEQgzgWp09Dsvg6q+GOLmiUbU9ZXwI/I0wgrCIqehIQ0nWY1ThQP5SV4p6IGteWFu9HwuVUXTWfq\n\tXk8BNnMMgwKFQvOADMxj+RKVmIOvpgHT6Ioi9nL8ZtruFhB1xd6iS+Av/l/ClguMIa53BPa5aCC\n\tRqm6pdG0j/Xrn2Yg8yPSkTMqTwhboNlgIG97pJrdyX5iyafytLKb6/a8alkoiTm6F2IZUjfuBfV\n\ts13TM7/UYKKFfMMwCTWfYXboIHgKQDSLA==",
        "X-Received": "by 2002:a17:90b:3804:b0:361:4521:d311 with SMTP id\n 98e67ed59e1d1-365ac080741mr8221812a91.18.1778161515408;\n        Thu, 07 May 2026 06:45:15 -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 7/8] smb: client: block cache=ro and cache=singleclient on\n remount",
        "Date": "Thu,  7 May 2026 13:44:47 +0000",
        "Message-ID": "<20260507134448.168602-8-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-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "From: Rajasi Mandal <rajasimandal@microsoft.com>\n\ncache=ro and cache=singleclient are mount-time environment declarations\nwhere the admin promises that the share is read-only or exclusively\naccessed.  The client bypasses server-based coherency (oplocks/leases)\nand caches aggressively based on this promise.\n\nThese modes were intentionally excluded from smb3_update_mnt_flags()\nwhen it was introduced in commit 2d39f50c2b15 (\"cifs: move update of\nflags into a separate function\") — only cache=strict, cache=none and\ncache=loose were made reconfigurable.  However, remount currently\nsilently accepts cache=ro and cache=singleclient without actually\napplying them, which is confusing.\n\nAdd explicit checks in smb3_verify_reconfigure_ctx() to reject\nattempts to change these options during remount with a clear error\nmessage.\n\nSigned-off-by: Rajasi Mandal <rajasimandal@microsoft.com>\n---\n fs/smb/client/fs_context.c | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c\nindex 01c57adb0ef1..009b9480b5cc 100644\n--- a/fs/smb/client/fs_context.c\n+++ b/fs/smb/client/fs_context.c\n@@ -1207,6 +1207,15 @@ static int smb3_verify_reconfigure_ctx(struct fs_context *fc,\n \t\tcifs_errorf(fc, \"can not change rdma during remount\\n\");\n \t\treturn -EINVAL;\n \t}\n+\t/* init default: cache_ro = false, cache_rw = false (i.e. cache=strict) */\n+\tif (new_ctx->cache_ro != old_ctx->cache_ro) {\n+\t\tcifs_errorf(fc, \"can not change cache=ro during remount\\n\");\n+\t\treturn -EINVAL;\n+\t}\n+\tif (new_ctx->cache_rw != old_ctx->cache_rw) {\n+\t\tcifs_errorf(fc, \"can not change cache=singleclient during remount\\n\");\n+\t\treturn -EINVAL;\n+\t}\n \n \treturn 0;\n }\n",
    "prefixes": [
        "v2",
        "7/8"
    ]
}