get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2223180,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2223180/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260414161805.233686-2-bharathsm@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": "<20260414161805.233686-2-bharathsm@microsoft.com>",
    "date": "2026-04-14T16:18:03",
    "name": "[2/4] smb: client: add tracepoint for local lock conflicts",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "5fcb15f735c8b8530ebbb90b16cdb3f7eb409e0c",
    "submitter": {
        "id": 86063,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/86063/?format=api",
        "name": "Bharath SM",
        "email": "bharathsm.hsk@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260414161805.233686-2-bharathsm@microsoft.com/mbox/",
    "series": [
        {
            "id": 499868,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/499868/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=499868",
            "date": "2026-04-14T16:18:03",
            "name": "[1/4] smb: client: add tracepoints for lock operations",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499868/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2223180/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2223180/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-10813-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=UB5+LK21;\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-10813-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=\"UB5+LK21\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.178",
            "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fw8dx0dLLz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 02:20:53 +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 8903D3013A4C\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 16:18:14 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id EB37E1DFFD;\n\tTue, 14 Apr 2026 16:18:13 +0000 (UTC)",
            "from mail-pf1-f178.google.com (mail-pf1-f178.google.com\n [209.85.210.178])\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 B6F96314B73\n\tfor <linux-cifs@vger.kernel.org>; Tue, 14 Apr 2026 16:18:12 +0000 (UTC)",
            "by mail-pf1-f178.google.com with SMTP id\n d2e1a72fcca58-82cebbdab08so4259805b3a.2\n        for <linux-cifs@vger.kernel.org>;\n Tue, 14 Apr 2026 09:18:12 -0700 (PDT)",
            "from bharathsm-Virtual-Machine.. ([167.220.110.101])\n        by smtp.googlemail.com with ESMTPSA id\n d2e1a72fcca58-82f0c30ee59sm15298585b3a.1.2026.04.14.09.18.11\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 14 Apr 2026 09:18:11 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776183493; cv=none;\n b=aTXvWYO07ZrjnBvTgU4ToXhgyI5Mo5DOs/LOkAG8tEWquRAHOVrJ9Ndd4V5m+2RQM+V8yB5pw27AcrziNSnHRp77mpNNb2eYC4h2oGi+r9OSTvmS8ggeYPVgJLHNr5z+goD3ZA6F8gEPtVUCXWkPjC0xD/R2wDvtugHUPkVrb1E=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776183493; c=relaxed/simple;\n\tbh=1cKR59a8LFv+m3+/Saa1ocskqgMkiRtSNSU9mYzf3EM=;\n\th=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=kTnYghgjwiDmiD78qiGXLc1GRJsjF7CQFMSRc1dbCEwSC/G/OeNGOH14FoQIsP02oy4s8U6kMV4348MZWF3V0BAM8SFp0SNzesCQsT9DwPHR+vR6WZfW9mmA5FqiQTKnrgfNUKaTgtah/1xBuq1o7MfF2mN2sbnpKMjoGhuskBw=",
        "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=UB5+LK21; arc=none smtp.client-ip=209.85.210.178",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1776183492; x=1776788292;\n darn=vger.kernel.org;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=K71PSMfpHRlyFWoQ4+uuYsY2JS8Ju9wHEZODt3x5U6w=;\n        b=UB5+LK21KjBziOHq4y3rnEfESoUOG4Svln/EoY6DAnXM1+mf60aivuaOuWG8/dQRVZ\n         sAVSse1aQ7bPK8rVLUu9t7sE0Hpbk3WlHOPwdPnWQSp7uUBTgswJk27xwueLTdqWzCtZ\n         Kprzd6L+uVOFNT/Y0AH6OG7v2+tkVHjsIoNx3MwW4eH4hJdQ/mqTULt1q7i8MGo8fz/q\n         9C11o5igLzFRydWuYliM5EZMD1TadureTlpDjSvMKjX5JXXcTQgbUkg8sL2BLTXhJkzw\n         eYqS58skz/MPruEadaqwv7hI9AmPWkeULjvrsDVN6/MGuaZ8pgY7aO6k6aUnrwgi2r+I\n         EeSA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1776183492; x=1776788292;\n        h=content-transfer-encoding:mime-version:references:in-reply-to\n         :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n         :cc:subject:date:message-id:reply-to;\n        bh=K71PSMfpHRlyFWoQ4+uuYsY2JS8Ju9wHEZODt3x5U6w=;\n        b=ZR6JYD3tYFiFgtcN2YeSlzQO4I+7AjfqeDcBfI6edk5KpnUg9IsWysie9TJTmsClx1\n         BL3Wc/nrkwUGo6v6S/yIxF6B+8sehDDYCo2FF2JgZ3zxRGAcVXZLU2capiu5BWyH6tuW\n         65UQVlaegfMPbEfmi6SfO5RGqcsW/tY25XZgAiBemXqSW62Kln6GRepITMBbBd8raN21\n         EXSGdvXCH0A+vqUgrdEmIQtMhvie3jA1+vM8YeEPwsLvD1FOQp1cN8HhFF8TBHv4iqfG\n         BwqGtCDPZR6NPIo+G5Gja7BzxvgIHsa4d2ZWILlu/JKkqtACqtTI5RO3JP6w0cx8mHGb\n         kpAw==",
        "X-Gm-Message-State": "AOJu0Yyyc60EbswRZ1ON/GPYhDhvdeHDhcLHGFUVx+ESW7xOHZi/O19m\n\t5ZR8BM18kNfpit+/8kedPz+DUwM5m1bKtUSxPvJGl/+pGemSIHGWXhJ478F/l8A6",
        "X-Gm-Gg": "AeBDieshLnOvfCr54bx+dFeQpx3mDBGqtJMJT1o+3oyYr2eT9KPBrDB7PR3LeZszLu5\n\t7Agrzs40rU9/VMP78Q3Dtjj5iCCInmvmE5uLz6niwma+ojEoyb69SlC/S5nk3p0ktUMXOkr4WvZ\n\tYPxXSJW+N4Cym7rNJKZq/ofncRzykQAk80LICnG7sIibfnLITFj+mDGkOGslfkpPtSXfNxxD7Kh\n\tX68H4bQyQd2A6dTcNFu9aFgnkQN+jFd98Tr/atTVwF0ibezN1C/6fPn/xdl3V4jy3uokwFAkjRh\n\twGUI1YwiaKncZ9z8R06c13G2AxrHDkmwG65GjvX+RvKIpdGBE1/OKDczARIoCgEZSMTpR016QY6\n\tTYGYWsmw0e5WH7UAY57kE7teOfcG+XAlZtadFcxoXHz48CKvFcTdcZqg9c+w5O5TtEuQ2LS9PoF\n\ttbRO+6DMcwnV/y2iLVR5h4s2GvpuMjalK5HUQ8h7fe9YdNy/SNbuuVL1c32L/Spg==",
        "X-Received": "by 2002:a05:6a00:2ea2:b0:82a:8865:6fe6 with SMTP id\n d2e1a72fcca58-82f0c2a7417mr19702739b3a.28.1776183491641;\n        Tue, 14 Apr 2026 09:18:11 -0700 (PDT)",
        "From": "Bharath SM <bharathsm.hsk@gmail.com>",
        "X-Google-Original-From": "Bharath SM <bharathsm@microsoft.com>",
        "To": "linux-cifs@vger.kernel.org,\n\tsmfrench@gmail.com,\n\tsprasad@microsoft.com,\n\tpc@manguebit.com,\n\tematsumiya@suse.de,\n\thenrique.carvalho@suse.com,\n\tbharathsm@microsoft.com",
        "Subject": "[PATCH 2/4] smb: client: add tracepoint for local lock conflicts",
        "Date": "Tue, 14 Apr 2026 21:48:03 +0530",
        "Message-ID": "<20260414161805.233686-2-bharathsm@microsoft.com>",
        "X-Mailer": "git-send-email 2.48.1",
        "In-Reply-To": "<20260414161805.233686-1-bharathsm@microsoft.com>",
        "References": "<20260414161805.233686-1-bharathsm@microsoft.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": "Add smb3_lock_conflict tracepoint that fires when a byte-range\nlock request conflicts with an existing cached lock. This helps\ndebug lock contention issues when locks are cached locally due\nto oplocks/leases.\n\nThe trace includes both the requested and conflicting lock details:\n- Requested: offset, length, type\n- Conflicting: offset, length, type, pid (lock holder)\n\nSigned-off-by: Bharath SM <bharathsm@microsoft.com>\n---\n fs/smb/client/file.c  |  3 +++\n fs/smb/client/trace.h | 35 +++++++++++++++++++++++++++++++++++\n 2 files changed, 38 insertions(+)",
    "diff": "diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c\nindex 66a678a0e89f..4662592801b0 100644\n--- a/fs/smb/client/file.c\n+++ b/fs/smb/client/file.c\n@@ -1631,6 +1631,9 @@ cifs_find_fid_lock_conflict(struct cifs_fid_locks *fdlocks, __u64 offset,\n \t\t\tcontinue;\n \t\tif (conf_lock)\n \t\t\t*conf_lock = li;\n+\t\ttrace_smb3_lock_conflict(cfile->fid.persistent_fid,\n+\t\t\t\t\t offset, length, type,\n+\t\t\t\t\t li->offset, li->length, li->type, li->pid);\n \t\treturn true;\n \t}\n \treturn false;\ndiff --git a/fs/smb/client/trace.h b/fs/smb/client/trace.h\nindex 242c9da0283e..cb5ce1316eba 100644\n--- a/fs/smb/client/trace.h\n+++ b/fs/smb/client/trace.h\n@@ -729,6 +729,41 @@ DEFINE_SMB3_LOCK_EVENT(lock_done);\n DEFINE_SMB3_LOCK_EVENT(lock_err);\n DEFINE_SMB3_LOCK_EVENT(lock_cached);\n \n+TRACE_EVENT(smb3_lock_conflict,\n+\tTP_PROTO(__u64 fid,\n+\t\t__u64 req_offset,\n+\t\t__u64 req_len,\n+\t\t__u8 req_type,\n+\t\t__u64 conf_offset,\n+\t\t__u64 conf_len,\n+\t\t__u16 conf_type,\n+\t\t__u32 conf_pid),\n+\tTP_ARGS(fid, req_offset, req_len, req_type, conf_offset, conf_len, conf_type, conf_pid),\n+\tTP_STRUCT__entry(\n+\t\t__field(__u64, fid)\n+\t\t__field(__u64, req_offset)\n+\t\t__field(__u64, req_len)\n+\t\t__field(__u8, req_type)\n+\t\t__field(__u64, conf_offset)\n+\t\t__field(__u64, conf_len)\n+\t\t__field(__u16, conf_type)\n+\t\t__field(__u32, conf_pid)\n+\t),\n+\tTP_fast_assign(\n+\t\t__entry->fid = fid;\n+\t\t__entry->req_offset = req_offset;\n+\t\t__entry->req_len = req_len;\n+\t\t__entry->req_type = req_type;\n+\t\t__entry->conf_offset = conf_offset;\n+\t\t__entry->conf_len = conf_len;\n+\t\t__entry->conf_type = conf_type;\n+\t\t__entry->conf_pid = conf_pid;\n+\t),\n+\tTP_printk(\"fid=0x%llx req=[0x%llx:0x%llx] type=0x%x conflicts with [0x%llx:0x%llx] type=0x%x pid=%u\",\n+\t\t__entry->fid, __entry->req_offset, __entry->req_len, __entry->req_type,\n+\t\t__entry->conf_offset, __entry->conf_len, __entry->conf_type, __entry->conf_pid)\n+);\n+\n /*\n  * For handle based query/set info calls\n  */\n",
    "prefixes": [
        "2/4"
    ]
}