]> Pileus Git - ~andy/linux/commit
rbd: adjust image object request ref counting
authorAlex Elder <elder@inktank.com>
Mon, 15 Apr 2013 19:50:37 +0000 (14:50 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:01 +0000 (21:19 -0700)
commitb155e86cf619886388d80ec298b0f13694c83595
tree5805bc6f446d4457b765eae514b5c5107bbf03e0
parent49719778bfa5371ec9b5a7d989bb29000e3ac5df
rbd: adjust image object request ref counting

An extra reference is taken when an object request is added as one
of the requests making up an image object.  A reference is dropped
again when the image's object requests get submitted.

The original reference for the object request will remain throughout
this period, so we don't need to add and then take away an extra
one.

This can be interpreted as the image request inheriting the original
object request's reference.

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