Re: [PATCH v1 1/2] kunit, slub: Add test_kfree_rcu_wq_destroy use case

2025-02-28 Thread Uladzislau Rezki
On Fri, Feb 28, 2025 at 04:49:24PM +0100, Vlastimil Babka wrote: > On 2/28/25 13:13, Uladzislau Rezki (Sony) wrote: > > Add a test_kfree_rcu_wq_destroy test to verify a kmem_cache_destroy() > > from a workqueue context. The problem is that, before destroying any > > cache the kvfree_rcu_barrier() i

Re: [PATCH v1 1/2] kunit, slub: Add test_kfree_rcu_wq_destroy use case

2025-02-28 Thread Vlastimil Babka
On 2/28/25 13:13, Uladzislau Rezki (Sony) wrote: > Add a test_kfree_rcu_wq_destroy test to verify a kmem_cache_destroy() > from a workqueue context. The problem is that, before destroying any > cache the kvfree_rcu_barrier() is invoked to guarantee that in-flight > freed objects are flushed. > > T

[PATCH v1 1/2] kunit, slub: Add test_kfree_rcu_wq_destroy use case

2025-02-28 Thread Uladzislau Rezki (Sony)
Add a test_kfree_rcu_wq_destroy test to verify a kmem_cache_destroy() from a workqueue context. The problem is that, before destroying any cache the kvfree_rcu_barrier() is invoked to guarantee that in-flight freed objects are flushed. The _barrier() function queues and flushes its own internal wo