aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorDavid Hildenbrand2021-06-02 20:57:19 +0200
committerMichael S. Tsirkin2021-07-08 07:49:02 -0400
commitc6bc1422fa55033c1bd04c788203af8be2d5ce4c (patch)
treed37614f490d0bc3d6cde2f727eff4b0bdde4b48d /crypto
parentc740bb97cc84b88f160f32e0b5c80159e1c6fd9c (diff)
virtio-mem: simplify high-level unplug handling in Big Block Mode
Let's simplify high-level big block selection when unplugging in Big Block Mode. Combine handling of offline and online blocks. We can get rid of virtio_mem_bbm_bb_is_offline() and simply use virtio_mem_bbm_offline_remove_and_unplug_bb(), as that already tolerates offline parts. We can race with concurrent onlining/offlining either way, so we don;t have to be super correct by failing if an offline big block we'd like to unplug just got (partially) onlined. Signed-off-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/20210602185720.31821-7-david@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions