Ilya Dryomov 42dd037c08 rbd: fix error paths in rbd_img_request_fill()
Doing rbd_obj_request_put() in rbd_img_request_fill() error paths is
not only insufficient, but also triggers an rbd_assert() in
rbd_obj_request_destroy():

    Assertion failure in rbd_obj_request_destroy() at line 1867:

    rbd_assert(obj_request->img_request == NULL);

rbd_img_obj_request_add() adds obj_requests to the img_request, the
opposite is rbd_img_obj_request_del().  Use it.

Fixes: http://tracker.ceph.com/issues/7327

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
2014-04-03 10:33:51 +08:00
..
2014-03-04 07:55:47 -08:00
2013-11-23 22:33:49 -08:00
2014-01-30 16:56:55 -08:00
2014-01-30 16:56:55 -08:00
2013-11-23 22:33:49 -08:00
2013-12-16 15:49:40 -05:00
2014-01-03 10:05:34 +01:00
2013-11-08 09:10:30 -07:00