Files
linux/drivers/block
Ilya Dryomov 04168b98a3 rbd: fix error paths in rbd_img_request_fill()
commit 42dd037c08 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-30 21:52:12 -07:00
..
2014-04-03 12:01:05 -07:00
2014-05-06 07:55:32 -07:00
2013-03-26 14:48:12 -06:00
2013-04-09 14:13:19 -04:00
2013-04-09 14:13:32 -04:00
2013-03-28 14:50:49 -04:00
2013-07-21 18:21:29 -07:00
2013-05-31 11:45:52 -04:00
2013-04-09 14:13:32 -04:00
2013-03-20 15:44:58 +10:30