Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2223182/?format=api
{ "id": 2223182, "url": "http://patchwork.ozlabs.org/api/patches/2223182/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260414161805.233686-3-bharathsm@microsoft.com/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/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": "<20260414161805.233686-3-bharathsm@microsoft.com>", "list_archive_url": null, "date": "2026-04-14T16:18:04", "name": "[3/4] smb: client: add oplock level to smb3_open_done tracepoint", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "04ec79753efe1ef1dc71d97e62d96b00bbed061b", "submitter": { "id": 86063, "url": "http://patchwork.ozlabs.org/api/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-3-bharathsm@microsoft.com/mbox/", "series": [ { "id": 499868, "url": "http://patchwork.ozlabs.org/api/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/2223182/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223182/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-10814-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=pRUoNADS;\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-10814-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=\"pRUoNADS\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.170", "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 4fw8f80hpsz1yHH\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 15 Apr 2026 02:21:04 +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 A8DFB303E127\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 16:18:30 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 3224F3ED134;\n\tTue, 14 Apr 2026 16:18:29 +0000 (UTC)", "from mail-pf1-f170.google.com (mail-pf1-f170.google.com\n [209.85.210.170])\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 9584C3E5ECA\n\tfor <linux-cifs@vger.kernel.org>; Tue, 14 Apr 2026 16:18:26 +0000 (UTC)", "by mail-pf1-f170.google.com with SMTP id\n d2e1a72fcca58-82c70e4654eso2516498b3a.2\n for <linux-cifs@vger.kernel.org>;\n Tue, 14 Apr 2026 09:18:26 -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.24\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 14 Apr 2026 09:18:24 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776183508; cv=none;\n b=RODNblSXukWEJiKWDaS/odoQDx32zTHIlFO/Tc2t5GxTxNHzMz1PsGPDUQAMdunxxBIGoJPKDabT4bbdYOOFWEpmfWrtURAG9Iufeo9Eci7W30ztmcl9aO7JbvgC0dGMEj+hKbP7eHNKibkVoJGjYycsJGGm2J73KhlcyS8Ibpo=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776183508; c=relaxed/simple;\n\tbh=nibqdMYmBb7tAORp3Xmg66Zl4jf3OkES70n3H/pw9Ko=;\n\th=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=L8OcYJsWA6I+ieXdO6ftdovCDYSmWGFRLLHCd4vcRM8jy3DiWGs5I8SoGyt35A8qxuL/M5u1nd6x3YCRsh0KLyQf5BShNNP2nhkGmQvcWfsbHTLvk0U10sFFlnT8Rrml08K0DqZAK6Q6bZCs4yiQ8L4gxDR5fBA0Xh4bTuKCRuo=", "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=pRUoNADS; arc=none smtp.client-ip=209.85.210.170", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776183505; x=1776788305;\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=3FEZZFLdFMDiBVXrPIj+L0y1hVnxidBgedh/d+dmu28=;\n b=pRUoNADSLhr0/lUBTpV8LwuvffdytY0w6O7bCB/wVWOBz37l2hJZQFSf/JDOeDtVvJ\n WMEEExFTp1KkoqmmS16wDHPExDPOj/paLFQQ+f87blRpdvhWGT8Nup3Tz3cKq2B08IDm\n qnkzhQTPQPGcZ2FQlB5+q9IIkDis9l3Vz64+GvCTHYxlHES/QYfj+J6zsZU0JJhIzbiZ\n bLCn16PYZFJixXkcrhpU1lJ4aPGf9j+8vf9ppwIbY3SsiDgJdVEq3r9YiE42O9tlh1aj\n dN6kcGa62vt0nKnh+hP/UlhO8slfuZWVxB4kz0ewMT9CjkSMY5bl69fDJg1Syn2m3/E1\n d1tg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776183505; x=1776788305;\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=3FEZZFLdFMDiBVXrPIj+L0y1hVnxidBgedh/d+dmu28=;\n b=UqPLI45u/HrpfCgaj3NFiBAbAFIxDmE7hFrsJ3RoNCnKGgeYz9NhNrMiA9eT/qxass\n 9Epr1nSpy2syLCGvMOvwIyCjDj4N71c6mlc66JuKrzqkwydzn1WBkLn2FnEMiWb7JEOg\n g7+HhjQopB/fsigptcnyGJbthQFzdhv8/yurQHIDiolzdfQqeX+hvK2GusooO42iEwno\n YR+m61DE8AaTW3QGSK+jIn3iyc1zuUphYrxd8Hm3tqGJ3bKfLsjEsvoPBssySK3D4dM7\n KRql1LfXrWurYcbJFXfr9ny8bmspsEr7H1jryXSFFAu00wVPmvatX0b0qHIUbY+N+XY2\n Flmw==", "X-Gm-Message-State": "AOJu0Yx6EKP/GnTugZcVugfLgHIicN2fi2RZLJumMpPKpV6Jr/uUX2iC\n\tZREwhr8XKH47HYuDq5YDpnb3JzPB7x4XWSz2+18m7QyMaFXnecnJFC+cLQLOLU5L", "X-Gm-Gg": "AeBDiesFXV3k8wHxNqhKxgNejfZF7zCLdIm41dM0EYJ+yW8aQLO5hZvtmPBkpc8Q1JL\n\tBH5++oLrArMm9wDVxMrCInK7AQ9+3HN66SoqJpGnXg3R4fsdYKQvRhagq9xEmE43zPW6uif4ol8\n\tloQZ8qbhAFKW2N0jbvY2k4EeiTOwbFPvON+cORRdAFkuCEL09wGZ9wms67yae/hT4NnStgtbmAZ\n\tBfzV8+QuS8KhHGR7NRbOsHVW/Xci4qKsiGpbnDIZEYKGiEOvJuRak13DcV7Y5mliMgATb8Kt6NL\n\tfa9FGJmkdHFxpiUhmfjHdNy03kTHbkCp8YKEg6YLc0TzmMorIwXvGkWiEHyvciRhdn8UCPWpN4R\n\tnoqn96a2ri6IkfhX8BIozq+ihfxhrlNsFQ42x6F17+KX2FRCJnoUdvIOYYl/UXk8xr0ulrM/JwB\n\toLEKTpBJjtmhtelYSdaixmwILcD3zPBVarRIpn3Y1aC/WO1yjDeMWbSPy4quxHeA==", "X-Received": "by 2002:a05:6a00:6904:b0:82f:1369:7272 with SMTP id\n d2e1a72fcca58-82f136995f4mr11170122b3a.19.1776183504975;\n Tue, 14 Apr 2026 09:18:24 -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 3/4] smb: client: add oplock level to smb3_open_done\n tracepoint", "Date": "Tue, 14 Apr 2026 21:48:04 +0530", "Message-ID": "<20260414161805.233686-3-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 an oplock field to the smb3_open_done_class trace event to\nshow the granted oplock/lease level. Move the trace_smb3_open_done\ncall after smb2_parse_contexts() so the oplock value reflects\nthe parsed lease state (R/W/H flags).\n\nSigned-off-by: Bharath SM <bharathsm@microsoft.com>\n---\n fs/smb/client/smb2pdu.c | 10 ++++++----\n fs/smb/client/trace.h | 16 ++++++++++------\n 2 files changed, 16 insertions(+), 10 deletions(-)", "diff": "diff --git a/fs/smb/client/smb2pdu.c b/fs/smb/client/smb2pdu.c\nindex 61bae531959a..96140f6d30b5 100644\n--- a/fs/smb/client/smb2pdu.c\n+++ b/fs/smb/client/smb2pdu.c\n@@ -3044,7 +3044,8 @@ int smb311_posix_mkdir(const unsigned int xid, struct inode *inode,\n \t}\n \n \ttrace_smb3_posix_mkdir_done(xid, rsp->PersistentFileId, tcon->tid, ses->Suid,\n-\t\t\t\t CREATE_NOT_FILE, FILE_WRITE_ATTRIBUTES);\n+\t\t\t\t CREATE_NOT_FILE, FILE_WRITE_ATTRIBUTES,\n+\t\t\t\t rsp->OplockLevel);\n \n \tSMB2_close(xid, tcon, rsp->PersistentFileId, rsp->VolatileFileId);\n \n@@ -3321,9 +3322,6 @@ SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path,\n \t\tgoto creat_exit;\n \t} else if (rsp == NULL) /* unlikely to happen, but safer to check */\n \t\tgoto creat_exit;\n-\telse\n-\t\ttrace_smb3_open_done(xid, rsp->PersistentFileId, tcon->tid, ses->Suid,\n-\t\t\t\t oparms->create_options, oparms->desired_access);\n \n \tatomic_inc(&tcon->num_remote_opens);\n \toparms->fid->persistent_fid = rsp->PersistentFileId;\n@@ -3348,6 +3346,10 @@ SMB2_open(const unsigned int xid, struct cifs_open_parms *oparms, __le16 *path,\n \n \trc = smb2_parse_contexts(server, &rsp_iov, &oparms->fid->epoch,\n \t\t\t\t oparms->fid->lease_key, oplock, buf, posix);\n+\n+\ttrace_smb3_open_done(xid, rsp->PersistentFileId, tcon->tid, ses->Suid,\n+\t\t\t oparms->create_options, oparms->desired_access,\n+\t\t\t *oplock);\n creat_exit:\n \tSMB2_open_free(&rqst);\n \tfree_rsp_buf(resp_buftype, rsp);\ndiff --git a/fs/smb/client/trace.h b/fs/smb/client/trace.h\nindex cb5ce1316eba..57abf5fca26c 100644\n--- a/fs/smb/client/trace.h\n+++ b/fs/smb/client/trace.h\n@@ -1321,8 +1321,9 @@ DECLARE_EVENT_CLASS(smb3_open_done_class,\n \t\t__u32\ttid,\n \t\t__u64\tsesid,\n \t\tint\tcreate_options,\n-\t\tint\tdesired_access),\n-\tTP_ARGS(xid, fid, tid, sesid, create_options, desired_access),\n+\t\tint\tdesired_access,\n+\t\t__u8\toplock),\n+\tTP_ARGS(xid, fid, tid, sesid, create_options, desired_access, oplock),\n \tTP_STRUCT__entry(\n \t\t__field(unsigned int, xid)\n \t\t__field(__u64, fid)\n@@ -1330,6 +1331,7 @@ DECLARE_EVENT_CLASS(smb3_open_done_class,\n \t\t__field(__u64, sesid)\n \t\t__field(int, create_options)\n \t\t__field(int, desired_access)\n+\t\t__field(__u8, oplock)\n \t),\n \tTP_fast_assign(\n \t\t__entry->xid = xid;\n@@ -1338,10 +1340,11 @@ DECLARE_EVENT_CLASS(smb3_open_done_class,\n \t\t__entry->sesid = sesid;\n \t\t__entry->create_options = create_options;\n \t\t__entry->desired_access = desired_access;\n+\t\t__entry->oplock = oplock;\n \t),\n-\tTP_printk(\"xid=%u sid=0x%llx tid=0x%x fid=0x%llx cr_opts=0x%x des_access=0x%x\",\n+\tTP_printk(\"xid=%u sid=0x%llx tid=0x%x fid=0x%llx cr_opts=0x%x des_access=0x%x oplock=0x%x\",\n \t\t__entry->xid, __entry->sesid, __entry->tid, __entry->fid,\n-\t\t__entry->create_options, __entry->desired_access)\n+\t\t__entry->create_options, __entry->desired_access, __entry->oplock)\n )\n \n #define DEFINE_SMB3_OPEN_DONE_EVENT(name) \\\n@@ -1351,8 +1354,9 @@ DEFINE_EVENT(smb3_open_done_class, smb3_##name, \\\n \t\t__u32\ttid,\t\t\t\\\n \t\t__u64\tsesid,\t\t\t\\\n \t\tint\tcreate_options,\t\t\\\n-\t\tint\tdesired_access),\t\\\n-\tTP_ARGS(xid, fid, tid, sesid, create_options, desired_access))\n+\t\tint\tdesired_access,\t\t\\\n+\t\t__u8\toplock),\t\t\\\n+\tTP_ARGS(xid, fid, tid, sesid, create_options, desired_access, oplock))\n \n DEFINE_SMB3_OPEN_DONE_EVENT(open_done);\n DEFINE_SMB3_OPEN_DONE_EVENT(posix_mkdir_done);\n", "prefixes": [ "3/4" ] }