Re: [PATCH v9 3/8] Use atomic_t for ucounts reference counting

2021-04-05 Thread Eric W. Biederman
Alexey Gladkov writes: > The current implementation of the ucounts reference counter requires the > use of spin_lock. We're going to use get_ucounts() in more performance > critical areas like a handling of RLIMIT_SIGPENDING. > > Now we need to use spin_lock only if we want to change the hashtabl

[PATCH v9 3/8] Use atomic_t for ucounts reference counting

2021-03-23 Thread Alexey Gladkov
The current implementation of the ucounts reference counter requires the use of spin_lock. We're going to use get_ucounts() in more performance critical areas like a handling of RLIMIT_SIGPENDING. Now we need to use spin_lock only if we want to change the hashtable. v9: * Use a negative value to