rbd: embed image request in blk-mq pdu
authorIlya Dryomov <idryomov@gmail.com>
Wed, 12 Feb 2020 14:23:58 +0000 (15:23 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:40 +0000 (12:42 +0200)
commit59e542c869895fb37005b60058a342187bb63c61
treecbc74c491fbd4c77894a79b358d8ebac84aa4f27
parenta52cc685753568e5bcbe762586c2bfbe7175255e
rbd: embed image request in blk-mq pdu

Avoid making allocations for !IMG_REQ_CHILD image requests.  Only
IMG_REQ_CHILD image requests need to be freed now.

Move the initial request checks to rbd_queue_rq().  Unfortunately we
can't fill the image request and kick the state machine directly from
rbd_queue_rq() because ->queue_rq() isn't allowed to block.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c