[PATCH 2/3] groups: convert group_info.usage to refcount_t

2020-06-12 Thread Kees Cook
From: Elena Reshetova atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed -

[PATCH 2/3] groups: convert group_info.usage to refcount_t

2019-03-06 Thread Elena Reshetova
atomic_t variables are currently used to implement reference counters with the following properties: - counter is initialized to 1 using atomic_set() - a resource is freed upon counter reaching zero - once counter reaches zero, its further increments aren't allowed - counter schema uses basi