[Drbd-dev] [PATCH] drbd: fix request leak introduced by locking/atomic, kref: Kill kref_sub()

Peter Zijlstra peterz at infradead.org
Thu May 11 10:29:48 CEST 2017


On Thu, May 11, 2017 at 10:21:46AM +0200, Lars Ellenberg wrote:
> Regression fix for 4.11, which totally broke DRBD
> 
> When killing kref_sub(), the unconditional additional kref_get()
> was not properly paired with the necessary kref_put(), causing
> a leak of struct drbd_requests (~ 224 Bytes) per submitted bio,
> and breaking DRBD in general, as the destructor of those "drbd_requests"
> does more than just the mempoll_free().
> 
> Fixes: bdfafc4ffdd2 ("locking/atomic, kref: Kill kref_sub()")
> Signed-off-by: Lars Ellenberg <lars.ellenberg at linbit.com>

Dang, sorry about that. Thanks for fixing it.


More information about the drbd-dev mailing list