get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2229715,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229715/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260428160804.281745-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": "<20260428160804.281745-15-sprasad@microsoft.com>",
    "date": "2026-04-28T16:08:00",
    "name": "[v3,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/20260428160804.281745-15-sprasad@microsoft.com/mbox/",
    "series": [
        {
            "id": 501896,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/501896/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=501896",
            "date": "2026-04-28T16:07:57",
            "name": "[v3,01/19] cifs: change_conf needs to be called for session setup",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/501896/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2229715/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2229715/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-cifs+bounces-11252-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=oqgftcva;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-cifs+bounces-11252-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=\"oqgftcva\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.214.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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\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 4g4m1w04Lyz1yJH\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 02:22:59 +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 D9DC53044A93\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:14:42 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 1EEEE44CF44;\n\tTue, 28 Apr 2026 16:08:36 +0000 (UTC)",
            "from mail-pl1-f182.google.com (mail-pl1-f182.google.com\n [209.85.214.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 3881E44D024\n\tfor <linux-cifs@vger.kernel.org>; Tue, 28 Apr 2026 16:08:34 +0000 (UTC)",
            "by mail-pl1-f182.google.com with SMTP id\n d9443c01a7336-2b25cf1b5f0so63884595ad.3\n        for <linux-cifs@vger.kernel.org>;\n Tue, 28 Apr 2026 09:08:34 -0700 (PDT)",
            "from sprasad-dev1.corp.microsoft.com ([167.220.110.216])\n        by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b97ac7894csm30864465ad.50.2026.04.28.09.08.32\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 28 Apr 2026 09:08:32 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777392516; cv=none;\n b=Y9JIzpM40oi7hzJD4136lkju7v4/KC7NIU/zkBWrWRZQxOAlmgnSvA5ItXSz2XQ/6Sfo59OwOkQvPeE8f2it+uOn5YBWXL7qVSXe8F/NZTBJ6+DvD4Ez5WqNODD8E8WH9EVQGy5CFRrtImtcLWGs4scHtN9o5q1Ja8+YNtpCP4Q=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777392516; 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=Tl/a7PGE/NjhG1LFYH3/+f/XyY5ogMv8QX53OegvQyhp2zT5tzM478ow32tHGQ7y8zOn9rfU9V26ey0zpLVX6SpCQbATDw3fLKdjfIBc9bsYZ5zBvSZYNBtSJ2sb3m2K7aRsWMf4SL+vkTNFbznz+cE01ZWXN406n+WQzpgUVVg=",
        "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=oqgftcva; arc=none smtp.client-ip=209.85.214.182",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1777392513; x=1777997313;\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=oqgftcvaEaZWF0tEktI7gEXov3GD1HDoK9fpa/EuUze6z1BI/PY+ekvApFl11oKYVN\n         O8bwwlkPKgco+jnJ84GwX3Xphm+zpapj/P6aYFos0zJQc4E4F4hJDF9Q2Ve6biHcGSYK\n         uSJM6M/X9rPllEIATJbzY6pJYTGJyVwkXH/u0TkMXtJO1DflRhwDqpahbQlpGf2iP0Hy\n         Jyh4sQJPOJjYEZ3nMEQB/ppbGReZZ+vthMlk6PdEaTgcky48i6wQPKvbRzKFiqSAs/2T\n         XDoNd7R4hyo7ssrmfcZHF5Tb66UXy09S34bodaFOvgDMykWpdO2IQ+8yuCWT2N9bNBim\n         ZnYA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777392513; x=1777997313;\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=RQIUk5rAsztjxnlJIg4o5G3haj7/FLnA6JW+jjOZ3iOhBp3NQrbhqCX0/GEJ4C+20O\n         rCwQv58TnOQjs4t5xQGgw0MjS+sfT2I3N8nY5llGqBgt/kCXjZcImBZpfFU3y8gGDU9f\n         t7E1QII8WDAwa7kxsq9DaA858y3JkDkc8edyRYvydgPsKpYcf3SH9C6ZcEdA4JpzGqum\n         S1hwxgb1S+THsDeMtlS4ec3U2mBD9nAiN+vx2R4rD9TcIdVnHAUQybAGsOS6z2W2cG0w\n         IjBUEUhsRUrh3WiKbu+W4sgCVnf2zb/e5BXR2lv8HWd5BJJapxCfDig2VSU7mbUJvw8v\n         5YoA==",
        "X-Gm-Message-State": "AOJu0YwR3h3u8PwnRkbnkFTnEgGb+fwN0Mqoue9WyUyGuuW+UHGP/BQ/\n\t36MG+P2+snhCf5u/EZ3HNJlFBEIjWcqZkYmbZkM7qW0Osk516aNwy/6ptRMQTv9Pp9Y=",
        "X-Gm-Gg": "AeBDiesjK7IcnjzaoV5wEqLZVQU1V983r/qv5/pBqaW0u/X26vbtsNAVnSQgJtHtVH2\n\tB6x7nKrpibKlLYGoByDQZDEDi1tXUMFxSQ+AjbMTeQVTCvpEFfL8ABkVvKYlSB8gozYKK9uk5ky\n\tjDHk8rttsUtFE6KPcMMmxEPievEUCb7a0jrMMG4+QLdoZ8fLzETZbJR2wAdU3UrSiFD4zjR+KxA\n\tze5P9KoL4yNyu+YuyR7rt99sSRBcsRkzQA82fhhUCrf4M6CD5jHh9lufmlCR0NQbadL4JVkXdvF\n\tSeiEXnWQJqjoPGjaxD7k4nU+ywsTM7xySPNwdiY39WeearsGYPuttOTUrYhngfuMooDimhl49T7\n\t6+tXhZ6tflepqJ2pXFENK3JPkDhhvqYG6b0Yt/onaC5jrTUpc9ORdHq+CzwZmrZnjqGDr48ZhVw\n\tt5sEIgk1Oi8MVbyuyVeRxTam2YnIVcC0NqXsLbTnR8zmJnUXmddLDxOpq1d8gosAmeuaNMJ/BFj\n\t8I=",
        "X-Received": "by 2002:a17:903:11c7:b0:2b2:65db:8c51 with SMTP id\n d9443c01a7336-2b98730ce7fmr724675ad.8.1777392512803;\n        Tue, 28 Apr 2026 09:08: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>",
        "Subject": "[PATCH v3 15/19] cifs: allow dcache population to happen\n asynchronously",
        "Date": "Tue, 28 Apr 2026 21:38:00 +0530",
        "Message-ID": "<20260428160804.281745-15-sprasad@microsoft.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260428160804.281745-1-sprasad@microsoft.com>",
        "References": "<20260428160804.281745-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": [
        "v3",
        "15/19"
    ]
}