diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-03-04 11:57:17 +0200 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-05-29 11:38:10 +0200 |
commit | 6319dbe1fba8a83813b672db8cc4fe4a70906fbd (patch) | |
tree | 205e48d8f4ea36470618f57e76289f2e2bddfc75 /kernel | |
parent | 75dff0a4149fe8aa5dedc19183cd0985c96c49b3 (diff) |
rbd: fix error paths in rbd_img_request_fill()
commit 42dd037c08c7cd6e3e9af7824b0c1d063f838885 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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions