Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2231753/?format=api
{ "id": 2231753, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2231753/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260501112023.338005-2-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": "<20260501112023.338005-2-sprasad@microsoft.com>", "date": "2026-05-01T11:20:05", "name": "[v4,02/19] cifs: abort open_cached_dir if we don't request leases", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "aeb9df3c6e0493b047c8be7725d8578290d87b3e", "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/20260501112023.338005-2-sprasad@microsoft.com/mbox/", "series": [ { "id": 502444, "url": "http://patchwork.ozlabs.org/api/1.1/series/502444/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=502444", "date": "2026-05-01T11:20:06", "name": "[v4,01/19] cifs: change_conf needs to be called for session setup", "version": 4, "mbox": "http://patchwork.ozlabs.org/series/502444/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2231753/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231753/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-cifs+bounces-11327-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=pyAE3tWa;\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-11327-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=\"pyAE3tWa\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.182", "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g6TKB4mVgz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 21:27:10 +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 3A7A430465E2\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 1 May 2026 11:22:10 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 391153A6EE2;\n\tFri, 1 May 2026 11:20:35 +0000 (UTC)", "from mail-pf1-f182.google.com (mail-pf1-f182.google.com\n [209.85.210.182])\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 7363A39F185\n\tfor <linux-cifs@vger.kernel.org>; Fri, 1 May 2026 11:20:33 +0000 (UTC)", "by mail-pf1-f182.google.com with SMTP id\n d2e1a72fcca58-8296d553142so1244073b3a.3\n for <linux-cifs@vger.kernel.org>;\n Fri, 01 May 2026 04:20:33 -0700 (PDT)", "from sprasad-dev1.corp.microsoft.com ([167.220.110.216])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-8351587db67sm2331922b3a.13.2026.05.01.04.20.31\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 01 May 2026 04:20:31 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777634435; cv=none;\n b=YN0N8Ul4cJunsjBk/0vNV5/Nd+B/kbZz1EXfI48GGV4Rj2c9mSzixPTUWM1HrvgvftTa6a+NpvsPMsadWi3tMI1/sdD7eK5vPEmqojqRvz65qCVY6k3WnrBx2Sj1IZ9EQi0HRr1NOcjuBcXfN2mYAeJuZqZWHVZZam90mPWRL88=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777634435; c=relaxed/simple;\n\tbh=8qx2DRUX1B48lgDcMV0H/JoKZ5REdvkIb7aId73YRXo=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=hBG2egKmk1zSnXSY+uR4dRj2Vy4VeRufifrff8Gf5tIiD8eX0I9WPQ7Me59ayeIix3P39Bse/tO0efEI/5xNIMa/b1fCzIfMbEnzyz359FSMVM8i8HkO1p481MDOtRN11REYsTnsPGVXMazKYmJ9VfL0J51hfxxhfU75FR+Hk4w=", "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=pyAE3tWa; arc=none smtp.client-ip=209.85.210.182", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777634432; x=1778239232;\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=tMpfJfDPYLUjScq5XH3LfedUkhoimyWrZal8ssI+6ww=;\n b=pyAE3tWa4H76IrY1V5zhrKlgEPf8fz7lqrhU+L4fmmOWgQHbT2J6YCMlBW77Ma68oG\n cnQ8KnPJcUHKoY+RWeuMBlODBnV3yR/P19x4DCepwcVIk31/NaSyZUd4QHSk22DhOmBH\n PcIEYvHIxV0PN7rTgFB/JNdEi92kp4pna5lmD1rf/jKAIIGe0pMBlKgKeHDNBTQ4YIHC\n dFLbA04gpZFGh5Dw9pr5j3ghDiOjXSDMDuR0ws6mJy89ziIsFyV1R+dEKSvA2wmNhS5v\n rJ5D39oiwZ5PV0tTG52+0x2ew3WYp4HnaT+m4j9Ay4M23tXPfsWvKeUFzRUyajMunSMK\n xolQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777634432; x=1778239232;\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=tMpfJfDPYLUjScq5XH3LfedUkhoimyWrZal8ssI+6ww=;\n b=mpuUYbdPA/47Du4IrXfZIXFDd/SJsDxtazwi7/Pa4ujEiXPHROf+X3SeteJiPetjre\n m1D42qv2FhecE2plWxtN6/J3yAyxa74O8OT99OZJ4mJ3cnrWmU9mItDt/IsR834/fpis\n 00YYWKB3c2eJH1/5Jv/aDsUhOsz4pjaRN7bfhzuGhClUWNsd13y4JzPDJTr7hXodhAci\n tgo3383JSqGsLKm/05Mav2qxI+xTNz05JJ+UVu9GinspUWNxtqEn/fkI0hcv6CH9QVXr\n VmbLh9V56r2xPhJiRNxbu99IGs8mMsvHwuySzI/OpzJQsQS15WVrjAxPwQ25K83Bj3Lp\n DA0g==", "X-Gm-Message-State": "AOJu0YxuMU+6n6yXsZLZOjtITPkcYGaT57oyPBsCl9g1+xQL+/to3/lT\n\tvpdUmZVnJy7AtjNDijrhnlF9VQ1HfD/ezC5ugTYLIu8w7fNwyk9JKq6ZQmEdlQaAwtg=", "X-Gm-Gg": "AeBDievusLKM3bG0O4HWQxhPWJZZaBtxZoLuY5tH3Ml/fZKUm+OvHnRdOIxyFpXXf2K\n\toyAhTAJ4BadF+7ff0VbHIM5aq3A+MGFipczjCLe+sU07v03BjyWPihb5Az/JiVmw9RaTt/sMC0u\n\tZKTAgNoZqaZA9Z7E+wk8HrWMCf9/9bamtZtq35Sc6gDbXlK+jm22qkuQRvW9wmMMHsIFMPbCbQd\n\tU/S9KHqenHlzn0At2JrqiPObXhHZte8NSfp1SlaIfwZq4n+m8sJI3jSS2FWo7dQjOCXmd2RJ3ng\n\twVLeXspg3tx/5xHP4kj6a6XR5Zj4OO4l+i6cS1cjWMtxS397Y/w0btWbqr/mbEdLdDoFR+oFrK2\n\t5rteAfT9UWExjLV8H11s8G8ZmmKqU9CzO3a5VP4FzwdLxUho3ZPbBuphbiIwiBYCwvBKTNOYXaX\n\tyd7oQFD1GDPxOnu8WRQHfFbTPJKALpb2Ug6oaFSq4GV5JtpKB1rfi6OcyQzQRkMdw8", "X-Received": "by 2002:a05:6a00:3d51:b0:82f:8a29:e3de with SMTP id\n d2e1a72fcca58-834fdcbcd85mr7927940b3a.40.1777634432321;\n Fri, 01 May 2026 04:20:32 -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.org,\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 v4 02/19] cifs: abort open_cached_dir if we don't request\n leases", "Date": "Fri, 1 May 2026 16:50:05 +0530", "Message-ID": "<20260501112023.338005-2-sprasad@microsoft.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260501112023.338005-1-sprasad@microsoft.com>", "References": "<20260501112023.338005-1-sprasad@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": "From: Shyam Prasad N <sprasad@microsoft.com>\n\nIt is possible that SMB2_open_init may not set lease context based\non the requested oplock level. This can happen when leases have been\ntemporarily or permanently disabled. When this happens, we will have\nopen_cached_dir making an open without lease context and the response\nwill anyway be rejected by open_cached_dir (thereby forcing a close to\ndiscard this open). That's unnecessary two round-trips to the server.\n\nThis change adds a check before making the open request to the server\nto make sure that SMB2_open_init did add the expected lease context\nto the open in open_cached_dir.\n\nCc: <stable@vger.kernel.org>\nSigned-off-by: Shyam Prasad N <sprasad@microsoft.com>\n---\n fs/smb/client/cached_dir.c | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/fs/smb/client/cached_dir.c b/fs/smb/client/cached_dir.c\nindex 04bb95091f498..64e22c064fa0a 100644\n--- a/fs/smb/client/cached_dir.c\n+++ b/fs/smb/client/cached_dir.c\n@@ -286,6 +286,14 @@ int open_cached_dir(unsigned int xid, struct cifs_tcon *tcon,\n \t\t\t &rqst[0], &oplock, &oparms, utf16_path);\n \tif (rc)\n \t\tgoto oshr_free;\n+\n+\tif (oplock != SMB2_OPLOCK_LEVEL_II) {\n+\t\trc = -EINVAL;\n+\t\tcifs_dbg(FYI, \"%s: Oplock level %d not suitable for cached directory\\n\",\n+\t\t\t __func__, oplock);\n+\t\tgoto oshr_free;\n+\t}\n+\n \tsmb2_set_next_command(tcon, &rqst[0]);\n \n \tmemset(&qi_iov, 0, sizeof(qi_iov));\n", "prefixes": [ "v4", "02/19" ] }