]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: fix image request leak on parent read
authorAlex Elder <elder@inktank.com>
Thu, 2 May 2013 02:37:07 +0000 (21:37 -0500)
committerAlex Elder <elder@inktank.com>
Thu, 2 May 2013 17:15:28 +0000 (12:15 -0500)
commitf960b87d99a2ddef2b3076bae291ee969e2e514d
treee0fde7c77f9d6d2c5acbae75bb03004cbd9aaf46
parent83921cc28eb8ebd5e4726ba419660b3307139e2b
rbd: fix image request leak on parent read

When a read for a layered image object finds the target object
doesn't exist, a read image request for the parent image is created
and submitted.  When that completes, the callback routine was
not releasing that parent image request.  Fix that.

The slab allocation stuff just added has greatly simplified the
search for the source of this memory leak.

This resolves:
    http://tracker.ceph.com/issues/4803

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c