rbd: introduce image request state machine
authorIlya Dryomov <idryomov@gmail.com>
Thu, 16 May 2019 13:06:56 +0000 (15:06 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:44 +0000 (14:01 +0200)
commit0192ce2ee68b54394ba62e5668067bf01f7bc609
treee6f3c9ff14cb9c081f12381b3cc854390d66cb58
parent85b5e6d11898fddfcb2832024f73454d448f76e0
rbd: introduce image request state machine

Make it possible to schedule image requests on a workqueue.  This fixes
parent chain recursion added in the previous commit and lays the ground
for exclusive lock wait/wake improvements.

The "wait for pending subrequests and report first nonzero result" code
is generalized to be used by object request state machine.

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