iscsi: Switch to .bdrv_co_block_status()
commit92809c36009de25d4f41e88f572bca3cb26b7387
authorEric Blake <eblake@redhat.com>
Tue, 13 Feb 2018 20:26:48 +0000 (13 14:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Mar 2018 17:39:07 +0000 (2 18:39 +0100)
tree2bfbaf9bd12e02cc42281448da48b3d7b718ddd8
parent04a408fbffa634bf84cb8f23e4f30c4eb8cb4b05
iscsi: Switch to .bdrv_co_block_status()

We are gradually moving away from sector-based interfaces, towards
byte-based.  Update the iscsi driver accordingly.  In this case,
it is handy to teach iscsi_co_block_status() to handle a NULL map
and file parameter, even though the block layer passes non-NULL
values, because we also call the function directly.  For now, there
are no optimizations done based on the want_zero flag.

We can also make the simplification of asserting that the block
layer passed in aligned values.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/iscsi.c