rbd: end request on error in rbd_do_request() caller
authorAlex Elder <elder@dreamhost.com>
Thu, 8 Nov 2012 14:01:39 +0000 (08:01 -0600)
committerAlex Elder <elder@inktank.com>
Thu, 17 Jan 2013 21:33:41 +0000 (15:33 -0600)
commitcd323ac0eb433b14cbb270bfc5a82f308f2662de
tree0b07f4208d124c87821e76babcbb7886c141790a
parent8295cda7ceceb7b25f9a12cd21bbfb6206e28a6d
rbd: end request on error in rbd_do_request() caller

Only one of the three callers of rbd_do_request() provide a
collection structure to aggregate status.

If an error occurs in rbd_do_request(), have the caller
take care of calling rbd_coll_end_req() if necessary in
that one spot.

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