block/rbd: drop qemu_rbd_refresh_limits
librbd supports 1 byte alignment for all aio operations. Currently, there is no API call to query limits from the Ceph ObjectStore backend. So drop the bdrv_refresh_limits completely until there is such an API call. Signed-off-by: Peter Lieven <pl@kamp.de> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Message-Id: <20210702172356.11574-7-idryomov@gmail.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
c56ac27d2a
commit
eb06cbab7e
@ -240,14 +240,6 @@ done:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void qemu_rbd_refresh_limits(BlockDriverState *bs, Error **errp)
|
|
||||||
{
|
|
||||||
/* XXX Does RBD support AIO on less than 512-byte alignment? */
|
|
||||||
bs->bl.request_alignment = 512;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int qemu_rbd_set_auth(rados_t cluster, BlockdevOptionsRbd *opts,
|
static int qemu_rbd_set_auth(rados_t cluster, BlockdevOptionsRbd *opts,
|
||||||
Error **errp)
|
Error **errp)
|
||||||
{
|
{
|
||||||
@ -1482,7 +1474,6 @@ static BlockDriver bdrv_rbd = {
|
|||||||
.format_name = "rbd",
|
.format_name = "rbd",
|
||||||
.instance_size = sizeof(BDRVRBDState),
|
.instance_size = sizeof(BDRVRBDState),
|
||||||
.bdrv_parse_filename = qemu_rbd_parse_filename,
|
.bdrv_parse_filename = qemu_rbd_parse_filename,
|
||||||
.bdrv_refresh_limits = qemu_rbd_refresh_limits,
|
|
||||||
.bdrv_file_open = qemu_rbd_open,
|
.bdrv_file_open = qemu_rbd_open,
|
||||||
.bdrv_close = qemu_rbd_close,
|
.bdrv_close = qemu_rbd_close,
|
||||||
.bdrv_reopen_prepare = qemu_rbd_reopen_prepare,
|
.bdrv_reopen_prepare = qemu_rbd_reopen_prepare,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user