block: refactor bdrv_check_request: add errp
commit69b55e03f7e65a36eb954d0b7d4698b258df2708
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 11 Dec 2020 18:39:19 +0000 (11 21:39 +0300)
committerEric Blake <eblake@redhat.com>
Wed, 3 Feb 2021 14:00:33 +0000 (3 08:00 -0600)
tree8a5c36845a2804a3ad04147c2de3bc727a840a48
parentc9308314460f46c2bbc4a672a3a39ac842434bf1
block: refactor bdrv_check_request: add errp

It's better to pass &error_abort than just assert that result is 0: on
crash, we'll immediately see the reason in the backtrace.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20201211183934.169161-2-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: fix iotest 206 fallout]
Signed-off-by: Eric Blake <eblake@redhat.com>
block/file-posix.c
block/io.c
include/block/block_int.h
tests/qemu-iotests/206.out
tests/test-write-threshold.c