]> asedeno.scripts.mit.edu Git - linux.git/commit
rbd: move OSD request submission into object request state machines
authorIlya Dryomov <idryomov@gmail.com>
Tue, 14 May 2019 19:06:07 +0000 (21:06 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:44 +0000 (14:01 +0200)
commit85b5e6d11898fddfcb2832024f73454d448f76e0
tree024ed6ecf2a79fcc3b6d0e84e8d467d40f9046ed
parent0ad5d953548fe336134026b039ad4fd9e6594f16
rbd: move OSD request submission into object request state machines

Start eliminating asymmetry where the initial OSD request is allocated
and submitted from outside the state machine, making error handling and
restarts harder than they could be.  This commit deals with submission,
a commit that deals with allocation will follow.

Note that this commit adds parent chain recursion on the submission
side:

  rbd_img_request_submit
    rbd_obj_handle_request
      __rbd_obj_handle_request
        rbd_obj_handle_read
          rbd_obj_handle_write_guard
            rbd_obj_read_from_parent
              rbd_img_request_submit

This will be fixed in the next commit.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
drivers/block/rbd.c