mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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>
This commit is contained in:
parent
e673eee0f4
commit
46730ee6e8
|
|
@ -1157,7 +1157,7 @@ static __always_inline int __rhashtable_remove_fast_one(
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user