rbd: introduce copyup state machine
authorIlya Dryomov <idryomov@gmail.com>
Thu, 13 Jun 2019 15:44:08 +0000 (17:44 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:45 +0000 (14:01 +0200)
commit793333a303c90174c317e3fa12e898bbc02daee4
treec7bb5b44d5a0f7d443b2954bd162f3baf644de74
parentea9b743c97dc52c74b97d968bccbb51f6e5c92b6
rbd: introduce copyup state machine

Both write and copyup paths will get more complex with object map.
Factor copyup code out into a separate state machine.

While at it, take advantage of obj_req->osd_reqs list and issue empty
and current snapc OSD requests together, one after another.

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