On 3/20/24 09:58, Alexander Wetzel wrote:
While I'm not familiar with the code, I'm pretty sure kref_put() is removing the last reference to d_ref here. Anything else would be odd, based on my - really sketchy - understanding of the flows.
Please document this by adding a WARN_ON_ONCE() statement before the kref_put() call that checks that the refcount equals one. Thanks, Bart.