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)
commite93f3152357ca75284284bef8eeea7d45fe1bab1
tree772595e38dcf482119c938228c2e4db699bcbaa3
parentfb65d2284c117cfc28d30217d25a14a8e7a75a94
rbd: define parent image request routines

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