Re: [PATCH v2 1/2] drm/i915: convert i915_active.count from atomic_t to refcount_t

2022-12-29 Thread Praveen Kumar
On 25-12-2022 13:17, Deepak R Varma wrote: > The refcount_* APIs are designed to address known issues with the > atomic_t APIs for reference counting. They provide following distinct > advantages: >- protect the reference counters from overflow/underflow >- avoid use-after-free errors >

[PATCH v2 1/2] drm/i915: convert i915_active.count from atomic_t to refcount_t

2022-12-24 Thread Deepak R Varma
The refcount_* APIs are designed to address known issues with the atomic_t APIs for reference counting. They provide following distinct advantages: - protect the reference counters from overflow/underflow - avoid use-after-free errors - provide improved memory ordering guarantee schemes