rbd: move RBD_OBJ_FLAG_COPYUP_ENABLED flag setting
authorIlya Dryomov <idryomov@gmail.com>
Mon, 5 Jun 2023 14:33:35 +0000 (16:33 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 6 Jun 2023 07:53:59 +0000 (09:53 +0200)
commit09fe05c57b5aaf23e2c35036c98ea9f282b19a77
tree27a5d44bf4bc2fa6b86465eb1645afa04b570831
parent9561de3a55bed6bdd44a12820ba81ec416e705a7
rbd: move RBD_OBJ_FLAG_COPYUP_ENABLED flag setting

Move RBD_OBJ_FLAG_COPYUP_ENABLED flag setting into the object request
state machine to allow for the snapshot context to be captured in the
image request state machine rather than in rbd_queue_workfn().

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