linux/Documentation
Paul E. McKenney 99cf092058 doc: SLAB_TYPESAFE_BY_RCU uses cannot rely on spinlocks
Because the SLAB_TYPESAFE_BY_RCU code does not zero pages that are
to be broken up into slabs, the memory returned by kmem_cache_alloc()
must be fully initialized, including any spinlocks included in the newly
allocated structure.  This means that readers attempting to look up an
SLAB_TYPESAFE_BY_RCU object must use a reference-counting approach.
A spinlock may be acquired only after a reference is obtained, which
prevents that object from being passed to kmem_struct_free(), but only
while that reference continues to be held.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2022-08-31 04:58:15 -07:00
..
2022-08-14 09:28:54 -07:00
2022-08-04 12:12:54 -07:00
2022-08-07 17:52:35 -07:00
2022-08-10 11:07:26 -07:00
2022-08-04 15:35:58 -07:00
2022-08-08 11:18:31 -07:00
2022-08-11 23:25:05 +02:00
2022-07-27 21:18:00 +09:00
2022-08-06 10:19:51 -07:00
2022-08-04 19:47:37 -07:00
2022-07-11 15:51:01 +01:00
2022-08-05 09:41:12 -07:00
2022-08-12 09:44:23 -07:00
2022-08-04 19:47:37 -07:00
2022-08-06 10:56:45 -07:00