diff options
author | David Hildenbrand <david@redhat.com> | 2021-06-02 20:57:17 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-07-08 07:49:02 -0400 |
commit | 5304ca3dd70c586012fb93f4a6d74e3ab750902d (patch) | |
tree | 75294d9324c17df21430bb6cff17f123fc759119 /drivers/i3c | |
parent | f4cf803dff4c87656cf25d9c5ec3cf828839efec (diff) | |
download | linux-5304ca3dd70c586012fb93f4a6d74e3ab750902d.tar.bz2 |
virtio-mem: simplify high-level unplug handling in Sub Block Mode
Let's simplify by introducing a new virtio_mem_sbm_unplug_any_sb(),
similar to virtio_mem_sbm_plug_any_sb(), to simplify high-level memory
block selection when unplugging in Sub Block Mode.
Rename existing virtio_mem_sbm_unplug_any_sb() to
virtio_mem_sbm_unplug_any_sb_raw().
The only change is that we now temporarily unlock the hotplug mutex around
cond_resched() when processing offline memory blocks, which doesn't
make a real difference as we already have to temporarily unlock in
virtio_mem_sbm_unplug_any_sb_offline() when removing a memory block.
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20210602185720.31821-5-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/i3c')
0 files changed, 0 insertions, 0 deletions