block-backend: drop blk_prw, use block-coroutine-wrapper
commit16d36e299669145f3021f2912aefbc32d7f0593c
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 6 Oct 2021 13:17:13 +0000 (6 15:17 +0200)
committerEric Blake <eblake@redhat.com>
Fri, 15 Oct 2021 20:53:24 +0000 (15 15:53 -0500)
tree96bb326d813fab94dafbcf9a689713f0ac909b88
parent7d55a3bbadc0b00ff6c2a4f37116db887caec7ab
block-backend: drop blk_prw, use block-coroutine-wrapper

Let's drop hand-made coroutine wrappers and use coroutine wrapper
generation like in block/io.c.

Now, blk_foo() functions are written in same way as blk_co_foo() ones,
but wrap blk_do_foo() instead of blk_co_do_foo().

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211006131718.214235-8-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: spelling fix]
Signed-off-by: Eric Blake <eblake@redhat.com>
block/block-backend.c
block/coroutines.h