Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2231743/?format=api
{ "id": 2231743, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2231743/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260501112023.338005-3-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-3-sprasad@microsoft.com>", "date": "2026-05-01T11:20:06", "name": "[v4,03/19] cifs: invalidate cfid on unlink/rename/rmdir", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "111160e1f0f7cbb656f669006cce972cea819cbc", "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-3-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/2231743/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231743/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-cifs+bounces-11328-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=sQWFvU2p;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11328-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=\"sQWFvU2p\"", "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 sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4g6TCs2dh8z1y04\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 21:22:33 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id DAD873008C24\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 1 May 2026 11:22:23 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id B55EE3A75AF;\n\tFri, 1 May 2026 11:20:36 +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 AA9083A6B83\n\tfor <linux-cifs@vger.kernel.org>; Fri, 1 May 2026 11:20:34 +0000 (UTC)", "by mail-pf1-f170.google.com with SMTP id\n d2e1a72fcca58-82f8b60e54dso1302867b3a.2\n for <linux-cifs@vger.kernel.org>;\n Fri, 01 May 2026 04:20:34 -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.32\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 01 May 2026 04:20:32 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777634436; cv=none;\n b=jLj1PUS0sEUMz5fKc0rNyqX77OGtEd3+e9ovhO+bFrwJQn7qQz28JIZdG9aOa5kDYDDOGAfnNbi4Ml7Fho9iNhzI4U5fuWZCVY3RKq8fJjcjpQ1jMA4RD4Go/V1uGh2FPddel6ynpnipNkN5Y6dnfasoKFDqmPt2LfPFPsDIMnY=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777634436; c=relaxed/simple;\n\tbh=LwvNSAXXnSWzoHT3Wi0kz3QpPPutFGXNvtJ3F3liFfg=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=PckPYoy0fM51+TxUObGA8QvW7gr+unlPaG1/JFZyOaTUlJPj8mGl9eR0UvY4HzyCbcEGiu+niDPm23nPHC2uJ3bh9njal3HPBCFut0K2j+U5nX5XIJXP3DT5FbuY2ZYhT0mkfMSWw0a139WHzzt1PfkLP8EKa9Q4BAwUhRYuIpQ=", "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=sQWFvU2p; 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=1777634433; x=1778239233;\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=ZRWgA5OmDOPPbc7jmvxeovxvP/jnc1UOCkDIWNmHkgQ=;\n b=sQWFvU2psz4r2lMyz69t4CeGPFUyCjKlSTMq4Int0RN//syyy3lw4JwO2RnvVjW4Wl\n +5mJSF7d2AgRgy+HV6EmsNaeaJP7nmC3tam20fRTTk0/08G3lHjyWq0/pCKSmHQ4Hf9k\n +WUBabu0SUFXTFVMdrp7ejYcdI763Ce9aCRyuAFo9/L2acF04NhbwtF7h4zHc9egItf0\n ZiVCum/2Af1rpdHgHfSubEcAq5Ac8p+nD8F40ZZfeey/p1yEMOFga2sl3GYLreISLnTI\n pjSDR1Eclsw12Tuw64xCao7oGGiiWWu/7f9O9GgsL+YHXv7v2Z36VerczQuQwNppL2na\n 96nw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777634433; x=1778239233;\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=ZRWgA5OmDOPPbc7jmvxeovxvP/jnc1UOCkDIWNmHkgQ=;\n b=JG2Z5I1le38l8xDQMyEr8WG91BAnJKC6jYu0fCClP0Wt0e63Fmd/ot/sOhOTn/rE19\n pL/JnVs5RFdytjI5hSWwxF97cFWQE0WTcevrbxdQHMLoBhCFXHU3LXc5C7rtKmrBXLFm\n 9rNk4BQ9L9Z70LTl+NRXFx4bq9UZR0+FPV0unNPmpT0g8Cn5Ag7AKlY31XZ4+SyTLWjU\n ywUAOo99Iuq3IBT9ELN9CpQgfWxTXQcQjizptDpOadXpDeF7Glwd8sk5l3TaWnd6+gty\n EYIBZSxBpc0Hc8iLp0p0mFWLpwfQ5j9RpJXaBeSP2qYD4SSsaEHF6cMgW9/UBqRcllJu\n xoqw==", "X-Gm-Message-State": "AOJu0Yw7kl8Yf1ih0LnpjiSwOYO7YghU5Dz8VZZsPBQjsMcMIF2q228Q\n\tEkme2V0hl8GLTY/nmznjQ1eeX0IwF3y13G4A0P6TQ5gq5hVR4QB7kOqGlXJ3M0fsnC8=", "X-Gm-Gg": "AeBDieviw6sZt0ndG7l2KpErQaQSOAussE9Nhu1IaMiKM4WCfrfpDG0vhvfKX57fK1A\n\tPepm/it0yayNCf0Cq+4Bm8HE/d9hXApuhafJKxHGK/GsThY/r52arjuzn9Jwov7rvJ3471QnV3J\n\ti6SI1L0IxbAep7LBM0erG2gF4VMbzeDnoB7tEMgD3roQxvBQ21KmctMIemRxR2UYY14d70kOzxd\n\tFDYnP8a85GUdK0Yovq18R9giDUtZxulZ2OzTcU/1Rp8wljcKWJITssdKcsltmglDiDM5wSp4Ch8\n\tgYAP/BwNYDRepLIgoO2HbkhrORdOf14rRn8W5TehapYBGKJ40Iw6eL1LcZ7bAAzMarPbwTZGams\n\tkWp9QmtWEz7yGAmbi5prOBA3g8xd2670DwBTRZy0QM+s7C+8GrR/yibyI9JxH2bzBUMm3RSrjuL\n\t9oMxRLtzJDMuQXuteYKFVx89AMToVj74djfdx1Sv20TUgk0fROz3342OOMqNXwc+oc", "X-Received": "by 2002:a05:6a00:1794:b0:823:1c5f:1c43 with SMTP id\n d2e1a72fcca58-8351a570ea0mr2916454b3a.36.1777634433437;\n Fri, 01 May 2026 04:20:33 -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 03/19] cifs: invalidate cfid on unlink/rename/rmdir", "Date": "Fri, 1 May 2026 16:50:06 +0530", "Message-ID": "<20260501112023.338005-3-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\nToday we do not invalidate the cached_dirent or the entire\nparent cfid when a dentry in a dir has been removed/moved.\n\nThis change invalidates the parent cfid so that we don't serve\ndirectory contents from the cache.\n\nCc: <stable@vger.kernel.org>\nSigned-off-by: Shyam Prasad N <sprasad@microsoft.com>\n---\n fs/smb/client/inode.c | 30 +++++++++++++++++++++++++++++-\n 1 file changed, 29 insertions(+), 1 deletion(-)", "diff": "diff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c\nindex 888f9e35f14b8..f0b76670b0921 100644\n--- a/fs/smb/client/inode.c\n+++ b/fs/smb/client/inode.c\n@@ -28,6 +28,23 @@\n #include \"cached_dir.h\"\n #include \"reparse.h\"\n \n+static void cifs_invalidate_cached_dir(struct cifs_tcon *tcon,\n+\t\t\t\t struct dentry *parent)\n+{\n+\tstruct cached_fid *parent_cfid = NULL;\n+\n+\tif (!tcon || !parent)\n+\t\treturn;\n+\n+\tif (!open_cached_dir_by_dentry(tcon, parent, &parent_cfid)) {\n+\t\tmutex_lock(&parent_cfid->dirents.de_mutex);\n+\t\tparent_cfid->dirents.is_valid = false;\n+\t\tparent_cfid->dirents.is_failed = true;\n+\t\tmutex_unlock(&parent_cfid->dirents.de_mutex);\n+\t\tclose_cached_dir(parent_cfid);\n+\t}\n+}\n+\n /*\n * Set parameters for the netfs library\n */\n@@ -2067,6 +2084,9 @@ static int __cifs_unlink(struct inode *dir, struct dentry *dentry, bool sillyren\n \t\tcifs_set_file_info(inode, attrs, xid, full_path, origattr);\n \n out_reval:\n+\tif (!rc && dentry->d_parent)\n+\t\tcifs_invalidate_cached_dir(tcon, dentry->d_parent);\n+\n \tif (inode) {\n \t\tcifs_inode = CIFS_I(inode);\n \t\tcifs_inode->time = 0;\t/* will force revalidate to get info\n@@ -2378,7 +2398,6 @@ int cifs_rmdir(struct inode *inode, struct dentry *direntry)\n \t}\n \n \trc = server->ops->rmdir(xid, tcon, full_path, cifs_sb);\n-\tcifs_put_tlink(tlink);\n \n \tcifsInode = CIFS_I(d_inode(direntry));\n \n@@ -2388,6 +2407,8 @@ int cifs_rmdir(struct inode *inode, struct dentry *direntry)\n \t\ti_size_write(d_inode(direntry), 0);\n \t\tclear_nlink(d_inode(direntry));\n \t\tspin_unlock(&d_inode(direntry)->i_lock);\n+\t\tif (direntry->d_parent)\n+\t\t\tcifs_invalidate_cached_dir(tcon, direntry->d_parent);\n \t}\n \n \t/* force revalidate to go get info when needed */\n@@ -2402,6 +2423,7 @@ int cifs_rmdir(struct inode *inode, struct dentry *direntry)\n \n \tinode_set_ctime_current(d_inode(direntry));\n \tinode_set_mtime_to_ts(inode, inode_set_ctime_current(inode));\n+\tcifs_put_tlink(tlink);\n \n rmdir_exit:\n \tfree_dentry_path(page);\n@@ -2668,6 +2690,12 @@ cifs_rename2(struct mnt_idmap *idmap, struct inode *source_dir,\n \t}\n \n \t/* force revalidate to go get info when needed */\n+\tif (!rc) {\n+\t\tcifs_invalidate_cached_dir(tcon, source_dentry->d_parent);\n+\t\tif (target_dentry->d_parent != source_dentry->d_parent)\n+\t\t\tcifs_invalidate_cached_dir(tcon, target_dentry->d_parent);\n+\t}\n+\n \tCIFS_I(source_dir)->time = CIFS_I(target_dir)->time = 0;\n \n cifs_rename_exit:\n", "prefixes": [ "v4", "03/19" ] }