summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2026-06-05 04:41:20 -0700
committerAlexei Starovoitov <ast@kernel.org>2026-06-05 08:00:07 -0700
commit46730ee6e884be667365e4d3a380ac504697559a (patch)
tree89ac96245ca43606698a307a1e367308fbe5ec44 /include/linux
parente673eee0f49ea41bf1af7aab08682ef98876c792 (diff)
downloadlwn-46730ee6e884be667365e4d3a380ac504697559a.tar.gz
lwn-46730ee6e884be667365e4d3a380ac504697559a.zip
rhashtable: Use irq work for shrinking
Use irq work for automatic shrinking so that this may be called in NMI context. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com> Link: https://lore.kernel.org/r/20260605-rhash-v7-3-5b8e05f8630d@meta.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/rhashtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h
index 6f3aea498515..3de3412d53c8 100644
--- a/include/linux/rhashtable.h
+++ b/include/linux/rhashtable.h
@@ -1157,7 +1157,7 @@ unlocked:
atomic_dec(&ht->nelems);
if (unlikely(ht->p.automatic_shrinking &&
rht_shrink_below_30(ht, tbl)))
- schedule_work(&ht->run_work);
+ irq_work_queue(&ht->run_irq_work);
err = 0;
}