rbd: define parent image request routines
authorAlex Elder <elder@inktank.com>
Thu, 9 May 2013 03:50:04 +0000 (22:50 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 13 May 2013 20:06:44 +0000 (15:06 -0500)
Define rbd_parent_request_create() and rbd_parent_request_destroy()
to handle the creation of parent image requests submitted for
layered image objects.  For simplicity, let rbd_img_request_put()
handle dropping the reference to any image request (parent or not),
and call whichever destructor is appropriate on the last put.

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

Simple merge