Lockless patterns: more read-modify-write operations
Lockless patterns: more read-modify-write operations
Posted Mar 21, 2021 11:12 UTC (Sun) by pbonzini (subscriber, #60935)In reply to: Lockless patterns: more read-modify-write operations by dgc
Parent article: Lockless patterns: more read-modify-write operations
Yes, it is.
I agree that one should use preexisting APIs; rather than
atomic_dec_and_lock the article points to kref_put_lock as the higher-level API that you want to use, I guess to some extent it's a matter of taste.