提交 d98f153f 编写于 作者: I Ilya Dryomov

rbd: don't NULL out ->obj_request in rbd_img_obj_parent_read_full()

If rbd_img_request_submit() fails, parent_request->obj_request is
NULLed out, triggering an assert in rbd_obj_request_put():

  rbd_img_request_put(parent_request)
    rbd_parent_request_destroy
      rbd_obj_request_put(NULL)

Just remove it -- parent_request->obj_request will be put in
rbd_parent_request_destroy().
Signed-off-by: NIlya Dryomov <idryomov@gmail.com>
上级 a0c5895b
...@@ -2682,8 +2682,6 @@ static int rbd_img_obj_parent_read_full(struct rbd_obj_request *obj_request) ...@@ -2682,8 +2682,6 @@ static int rbd_img_obj_parent_read_full(struct rbd_obj_request *obj_request)
parent_request->copyup_pages = NULL; parent_request->copyup_pages = NULL;
parent_request->copyup_page_count = 0; parent_request->copyup_page_count = 0;
parent_request->obj_request = NULL;
rbd_obj_request_put(obj_request);
out_err: out_err:
if (pages) if (pages)
ceph_release_page_vector(pages, page_count); ceph_release_page_vector(pages, page_count);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册