get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2231746,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2231746/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260501112023.338005-15-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-15-sprasad@microsoft.com>",
    "date": "2026-05-01T11:20:18",
    "name": "[v4,15/19] cifs: allow dcache population to happen asynchronously",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "3879ac026b7dfb70e0a2c3c0a7041408ecdf7ef7",
    "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-15-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/2231746/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2231746/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11340-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=pFrnLPzD;\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-11340-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=\"pFrnLPzD\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.174",
            "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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g6TDZ0Wtkz1y04\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 21:23:10 +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 22759300D1C4\n\tfor <incoming@patchwork.ozlabs.org>; Fri,  1 May 2026 11:23:03 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 0E87C39F181;\n\tFri,  1 May 2026 11:20:51 +0000 (UTC)",
            "from mail-pf1-f174.google.com (mail-pf1-f174.google.com\n [209.85.210.174])\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 6B7223A169B\n\tfor <linux-cifs@vger.kernel.org>; Fri,  1 May 2026 11:20:49 +0000 (UTC)",
            "by mail-pf1-f174.google.com with SMTP id\n d2e1a72fcca58-834f1075805so1345750b3a.2\n        for <linux-cifs@vger.kernel.org>;\n Fri, 01 May 2026 04:20:49 -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.47\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Fri, 01 May 2026 04:20:47 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777634450; cv=none;\n b=ZyDdbCKKcDZ/8VgzVW0LQ/R8YVLjYIZHb84vUKtIPq/Nz8/YPM24Cpmlj1NYXAbsxw020fu47x4rrNYlBs6N5QApv91YnPp85PA4Lrv/7PFok+7onWZIO9gyCBiuV5elPvq+qM7aUKO94VKU9nqrfHSbYUVgeE7M8/gFj1Y0tdU=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777634450; c=relaxed/simple;\n\tbh=VmiNOu92qfOGpbgQdQKaaiAu4d2/LjywJv3/ynylAQE=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=e7TXVe7U5CQqROzmLIkA/qc20lLmcGaTtJazda1jWs5t4k2Zbr9LNkPD40j92MW+46u5ghMkMrr2HsJjAbCgEAZRlGLzEysG43tP3+SM70gZkQQS34spgl4bRllZrvgUjoi6TRGyJiVQr8A+WPfq8IxujEw+maUwJCI3k8Ydqrc=",
        "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=pFrnLPzD; arc=none smtp.client-ip=209.85.210.174",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1777634448; x=1778239248;\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=rJkHCqu0LYxbJNwm6CzO2YLvdSwFs9MG3Pzkk5d76uk=;\n        b=pFrnLPzDyQR5fiOOje3oPuEXkzvRIpUn4Cct3wv0IL28fQlM3ZpOv8K1RH6ASKoNkU\n         PwBkTFD6S2Wm+ztug4Ivsnv0NUapp8L7IfZVgDkRrPuIWKhTQ4Incr4VGx5XP/T0OurR\n         wU/+r6UTwyDAEMo2hYp2Cofw5OcQSvlU4tJCyVSdnX0VvTyCA6+Abp0PAIzme7UXVoz7\n         VC18UMS3e1udt+hICPUKeSeQAVZKrUVHqGH/otCcYQCzRRhq/guJWYB8Zjq9tNuZFO5P\n         6pcZEtQPJK7uENezz9QI1YiguKVQIJFkuxLl6y2IrT3HCpF2e2ypW3YWIM1rikMgYhGm\n         IW4A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777634448; x=1778239248;\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=rJkHCqu0LYxbJNwm6CzO2YLvdSwFs9MG3Pzkk5d76uk=;\n        b=IgfcdMLuP+U+j0POtUChjS14XUwU/xgRN7JWW+SydYHsaHgMZJb8jQHrzVrYgQUtIL\n         tYSOtiWQfJ8ddl1d7lnGGksdSxDWv5KoUXB2RivXOCzAH0xRjm3Vsh4qTbJbtaiSnlcz\n         guayZjvTk01FthtCYpl3T9pz38Pn9UO/5bJ3jue3Nu8S7KHx393B1YKr9h4Jf3QdG4KM\n         LsaIEVAS7OTI7ZQcYHqYZc7PLoohsgh+HpficvROFB3iQO4mihlnHziRa+fsCqiYFeid\n         tuK2hkkKtAnro7RScCCo6wAssuM3ZcBO/vkw2YxAO4EKGrCi92uDJriVxGM//1W4TLhe\n         WrLg==",
        "X-Gm-Message-State": "AOJu0YwbmGtH0TOrTWSO2TiM9LjRQ2ltK8KA3wKXp44hfS/TozzaGfHj\n\tE6WKy2mhY5xpo+txitDjRb+JQgbAAsERv+YXbNN2ZWT5m3XKw5zSU6pFtgD67Wz9CjM=",
        "X-Gm-Gg": "AeBDiessHWx30NOCFYkJD3p98OMwFSffvJaftzUraKzCwyeFPhoima/nl/SEe53FPzy\n\tXRPqtjVpKwZasksTfGZaXUqF72XFzkWCprsRIazGkK4MF7aoWmiYQwAGG/Wp2TvXt3ZdewkDuo3\n\tKWvKoz3ixm3KaT/4dHkhQut9Ye9Z5AmrgW6rghdEvvx9U1Dug5+8aRjQsADAe/Xwy7iM86ctvsL\n\taUbFakfc0bFf+uQNomb2AZU/HJl28QAB9oG7tgtNJXgu0WWAF2ciek4WVzUHtBA1JT56Az0fr5N\n\tr0+L3umNuA6ZF0RoqjdSCnNvwmN62nFUNTPNXQjdDLzcT5o6HMFT9tSEcfmN3knOEeU8Lmc5SRw\n\trTOUUgiTIhNhOl/oZA2VIo/ba3mqnkDx0Z9Lm8pfFC3kHpZ/F3uTKqYfkEWx1x6KnFgnTLj0JdI\n\tHzEUshxdB5uvBfp/09KXQYzUIcz77rvRUlWSH4wnKgQSk95z6kDzDGX+gktqm0jGKH",
        "X-Received": "by 2002:aa7:88c8:0:b0:82f:2243:e445 with SMTP id\n d2e1a72fcca58-834fdbe6804mr7975576b3a.32.1777634448042;\n        Fri, 01 May 2026 04:20:48 -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>",
        "Subject": "[PATCH v4 15/19] cifs: allow dcache population to happen\n asynchronously",
        "Date": "Fri,  1 May 2026 16:50:18 +0530",
        "Message-ID": "<20260501112023.338005-15-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 cifs_readdir populates the dcache inline whenever it\nemits dentries. This introduces a perf bottleneck in\nreaddir performance.\n\nThis change attempts to make dcache population asynchronous\nand parallel by doing this inside workers. It introduces a new\nflag that lets reval and lookup wait for dentry population instead.\n\nSigned-off-by: Shyam Prasad N <sprasad@microsoft.com>\n---\n fs/smb/client/cifs_fs_sb.h |  1 +\n fs/smb/client/cifsfs.c     | 22 +++++++++-\n fs/smb/client/cifsglob.h   |  2 +\n fs/smb/client/readdir.c    | 88 +++++++++++++++++++++++++++++++++++++-\n 4 files changed, 110 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/fs/smb/client/cifs_fs_sb.h b/fs/smb/client/cifs_fs_sb.h\nindex 84e7e366b0ff4..0efc1483f3ab4 100644\n--- a/fs/smb/client/cifs_fs_sb.h\n+++ b/fs/smb/client/cifs_fs_sb.h\n@@ -71,5 +71,6 @@ struct cifs_sb_info {\n \t * Available once the mount has completed.\n \t */\n \tstruct dentry *root;\n+\tbool sb_dying:1;  /* superblock is being destroyed, skip dcache ops */\n };\n #endif\t\t\t\t/* _CIFS_FS_SB_H */\ndiff --git a/fs/smb/client/cifsfs.c b/fs/smb/client/cifsfs.c\nindex 79a6a4c297ee3..f8f3b27ba60bc 100644\n--- a/fs/smb/client/cifsfs.c\n+++ b/fs/smb/client/cifsfs.c\n@@ -69,6 +69,7 @@ bool disable_legacy_dialects; /* false by default */\n bool enable_gcm_256 = true;\n bool require_gcm_256; /* false by default */\n bool enable_negotiate_signing; /* false by default */\n+bool dcache_populate_async; /* false by default */\n unsigned int global_secflags = CIFSSEC_DEF;\n /* unsigned int ntlmv2_support = 0; */\n \n@@ -241,6 +242,9 @@ MODULE_PARM_DESC(require_gcm_256, \"Require strongest (256 bit) GCM encryption. D\n module_param(enable_negotiate_signing, bool, 0644);\n MODULE_PARM_DESC(enable_negotiate_signing, \"Enable negotiating packet signing algorithm with server. Default: n/N/0\");\n \n+module_param(dcache_populate_async, bool, 0644);\n+MODULE_PARM_DESC(dcache_populate_async, \"Enable asynchronous dcache population during readdir to improve performance on large directories. Default: n/N/0\");\n+\n module_param(disable_legacy_dialects, bool, 0644);\n MODULE_PARM_DESC(disable_legacy_dialects, \"To improve security it may be \"\n \t\t\t\t  \"helpful to restrict the ability to \"\n@@ -395,6 +399,11 @@ static void cifs_kill_sb(struct super_block *sb)\n \t * and close all deferred file handles before we kill the sb.\n \t */\n \tif (cifs_sb->root) {\n+\t\t/* Mark superblock as dying to skip expensive dcache ops in flight */\n+\t\tcifs_sb->sb_dying = true;\n+\t\t/* Wait for dcache work to complete and clean up */\n+\t\tflush_workqueue(cifs_dcache_wq);\n+\n \t\tclose_all_cached_dirs(cifs_sb);\n \t\tcifs_close_all_deferred_files_sb(cifs_sb);\n \n@@ -2082,9 +2091,17 @@ init_cifs(void)\n \t\tgoto out_destroy_serverclose_wq;\n \t}\n \n+\t/* WQ_UNBOUND allows dcache work to run on any CPU for parallelism */\n+\tcifs_dcache_wq = alloc_workqueue(\"cifs_dcache\",\n+\t\t\t\t\t WQ_UNBOUND | WQ_FREEZABLE, 0);\n+\tif (!cifs_dcache_wq) {\n+\t\trc = -ENOMEM;\n+\t\tgoto out_destroy_cfid_put_wq;\n+\t}\n+\n \trc = cifs_init_inodecache();\n \tif (rc)\n-\t\tgoto out_destroy_cfid_put_wq;\n+\t\tgoto out_destroy_dcache_wq;\n \n \trc = cifs_init_netfs();\n \tif (rc)\n@@ -2164,6 +2181,8 @@ init_cifs(void)\n \tcifs_destroy_netfs();\n out_destroy_inodecache:\n \tcifs_destroy_inodecache();\n+out_destroy_dcache_wq:\n+\tdestroy_workqueue(cifs_dcache_wq);\n out_destroy_cfid_put_wq:\n \tdestroy_workqueue(cfid_put_wq);\n out_destroy_serverclose_wq:\n@@ -2212,6 +2231,7 @@ exit_cifs(void)\n \tdestroy_workqueue(fileinfo_put_wq);\n \tdestroy_workqueue(serverclose_wq);\n \tdestroy_workqueue(cfid_put_wq);\n+\tdestroy_workqueue(cifs_dcache_wq);\n \tdestroy_workqueue(cifsiod_wq);\n \tcifs_proc_clean();\n }\ndiff --git a/fs/smb/client/cifsglob.h b/fs/smb/client/cifsglob.h\nindex 2a3fad071564a..278bf2bf11e97 100644\n--- a/fs/smb/client/cifsglob.h\n+++ b/fs/smb/client/cifsglob.h\n@@ -2144,6 +2144,7 @@ extern unsigned int sign_CIFS_PDUs;  /* enable smb packet signing */\n extern bool enable_gcm_256; /* allow optional negotiate of strongest signing (aes-gcm-256) */\n extern bool require_gcm_256; /* require use of strongest signing (aes-gcm-256) */\n extern bool enable_negotiate_signing; /* request use of faster (GMAC) signing if available */\n+extern bool dcache_populate_async; /* enable async dcache population during readdir */\n extern bool linuxExtEnabled;/*enable Linux/Unix CIFS extensions*/\n extern unsigned int CIFSMaxBufSize;  /* max size not including hdr */\n extern unsigned int cifs_min_rcv;    /* min size of big ntwrk buf pool */\n@@ -2165,6 +2166,7 @@ extern struct workqueue_struct *cifsoplockd_wq;\n extern struct workqueue_struct *deferredclose_wq;\n extern struct workqueue_struct *serverclose_wq;\n extern struct workqueue_struct *cfid_put_wq;\n+extern struct workqueue_struct *cifs_dcache_wq;\n extern __u32 cifs_lock_secret;\n \n extern mempool_t *cifs_sm_req_poolp;\ndiff --git a/fs/smb/client/readdir.c b/fs/smb/client/readdir.c\nindex ef81fdb503c0a..a1202a82be4e8 100644\n--- a/fs/smb/client/readdir.c\n+++ b/fs/smb/client/readdir.c\n@@ -13,6 +13,7 @@\n #include <linux/pagemap.h>\n #include <linux/slab.h>\n #include <linux/stat.h>\n+#include <linux/workqueue.h>\n #include \"cifsglob.h\"\n #include \"cifsproto.h\"\n #include \"cifs_unicode.h\"\n@@ -24,6 +25,19 @@\n #include \"cached_dir.h\"\n #include \"reparse.h\"\n \n+/* Workqueue for async dcache population */\n+struct workqueue_struct *cifs_dcache_wq;\n+\n+/* Work item for async dcache population */\n+struct cifs_dcache_work {\n+\tstruct work_struct work;\n+\tstruct dentry *parent;\t\t/* dget() reference to parent dir */\n+\tchar *name;\t\t\t/* kstrdup() copy of filename */\n+\tunsigned int namelen;\n+\tstruct cifs_fattr fattr;\t/* Copy of attributes */\n+\tstruct cached_fid *cfid;\t/* ref-counted cfid for cifs_complete_pending_dcache */\n+};\n+\n /*\n  * To be safe - for UCS to UTF-8 with strings loaded with the rare long\n  * characters alloc more to account for such multibyte target UTF-8\n@@ -171,6 +185,65 @@ cifs_prime_dcache(struct dentry *parent, struct qstr *name,\n \tdput(dentry);\n }\n \n+/*\n+ * Async dcache population work handler.\n+ * Delegates to cifs_prime_dcache then signals completion to unblock waiters.\n+ */\n+static void cifs_dcache_work_handler(struct work_struct *work)\n+{\n+\tstruct cifs_dcache_work *dcache_work =\n+\t\tcontainer_of(work, struct cifs_dcache_work, work);\n+\tstruct qstr name = QSTR_INIT(dcache_work->name, dcache_work->namelen);\n+\tstruct cifs_sb_info *cifs_sb = CIFS_SB(dcache_work->parent->d_sb);\n+\n+\tcifs_dbg(FYI, \"%s: async dcache for %s\\n\", __func__, name.name);\n+\n+\t/* Skip expensive dcache operations if superblock is being torn down */\n+\tif (!cifs_sb->sb_dying) {\n+\t\tcifs_prime_dcache(dcache_work->parent, &name, &dcache_work->fattr);\n+\t\tcifs_complete_pending_dcache(dcache_work->cfid, dcache_work->name,\n+\t\t\t\t\t     dcache_work->namelen);\n+\t}\n+\tclose_cached_dir(dcache_work->cfid);\n+\tdput(dcache_work->parent);\n+\tkfree(dcache_work->name);\n+\tkfree(dcache_work);\n+}\n+\n+/*\n+ * Queue async dcache population work.\n+ * Returns true if work was queued, false if sync fallback needed.\n+ */\n+static bool cifs_queue_dcache_work(struct dentry *parent, const char *name,\n+\t\t\t\t    unsigned int namelen, struct cifs_fattr *fattr,\n+\t\t\t\t    struct cached_fid *cfid)\n+{\n+\tstruct cifs_dcache_work *work;\n+\n+\tif (!cfid)\n+\t\treturn false;\n+\n+\twork = kzalloc(sizeof(*work), GFP_KERNEL);\n+\tif (!work)\n+\t\treturn false;\n+\n+\twork->name = kstrndup(name, namelen, GFP_KERNEL);\n+\tif (!work->name) {\n+\t\tkfree(work);\n+\t\treturn false;\n+\t}\n+\n+\twork->parent = dget(parent);\n+\twork->namelen = namelen;\n+\tmemcpy(&work->fattr, fattr, sizeof(work->fattr));\n+\tkref_get(&cfid->refcount);\n+\twork->cfid = cfid;\n+\n+\tINIT_WORK(&work->work, cifs_dcache_work_handler);\n+\tqueue_work(cifs_dcache_wq, &work->work);\n+\treturn true;\n+}\n+\n static void\n cifs_fill_common_info(struct cifs_fattr *fattr, struct cifs_sb_info *cifs_sb)\n {\n@@ -923,8 +996,19 @@ static int cifs_filldir(char *find_entry, struct file *file,\n \t\t */\n \t\tfattr.cf_flags |= CIFS_FATTR_NEED_REVAL;\n \n-\tadd_to_cached_dir(cfid, ctx, name.name, name.len, &fattr, file);\n-\tcifs_prime_dcache(file_dentry(file), &name, &fattr);\n+\t/* queue async dcache population if enabled; fallback to sync if disabled or queueing fails */\n+\tbool cached = add_to_cached_dir(cfid, ctx, name.name, name.len, &fattr, file);\n+\n+\tif (dcache_populate_async && cached &&\n+\t    cifs_queue_dcache_work(file_dentry(file), name.name, name.len,\n+\t\t\t\t  &fattr, cfid)) {\n+\t\t/* Async: handler will call cifs_prime_dcache + cifs_complete_pending_dcache */\n+\t\tcifs_dbg(FYI, \"Queued async dcache population for %.*s\\n\", name.len, name.name);\n+\t} else {\n+\t\tcifs_prime_dcache(file_dentry(file), &name, &fattr);\n+\t\tif (cached)\n+\t\t\tcifs_complete_pending_dcache(cfid, name.name, name.len);\n+\t}\n \n \treturn !cifs_dir_emit(ctx, name.name, name.len, &fattr);\n }\n",
    "prefixes": [
        "v4",
        "15/19"
    ]
}