summary refs log tree commit diff stats
path: root/blockjob.c
diff options
context:
space:
mode:
authorAlberto Faria <afaria@redhat.com>2022-11-08 14:44:33 +0000
committerKevin Wolf <kwolf@redhat.com>2022-11-10 14:52:36 +0100
commite56b0c66310feab14a14dd6a24fd58dae178e059 (patch)
treeefad2ee4116f97e298fc62db7a7517adb8673e21 /blockjob.c
parentc78532652265f03a2a2fbc239821eda34b967272 (diff)
downloadfocaccia-qemu-e56b0c66310feab14a14dd6a24fd58dae178e059.tar.gz
focaccia-qemu-e56b0c66310feab14a14dd6a24fd58dae178e059.zip
block/blkio: Set BlockDriver::has_variable_length to false
Setting it to true can cause the device size to be queried from libblkio
in otherwise fast paths, degrading performance. Set it to false and
require users to refresh the device size explicitly instead.

Fixes: 4c8f4fda0504 ("block/blkio: Tolerate device size changes")
Suggested-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Alberto Faria <afaria@redhat.com>
Message-Id: <20221108144433.1334074-1-afaria@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockjob.c')
0 files changed, 0 insertions, 0 deletions