summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/da9063-i2c.c
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2021-06-02 20:57:17 +0200
committerMichael S. Tsirkin <mst@redhat.com>2021-07-08 07:49:02 -0400
commit5304ca3dd70c586012fb93f4a6d74e3ab750902d (patch)
tree75294d9324c17df21430bb6cff17f123fc759119 /drivers/mfd/da9063-i2c.c
parentf4cf803dff4c87656cf25d9c5ec3cf828839efec (diff)
downloadlinux-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/mfd/da9063-i2c.c')
0 files changed, 0 insertions, 0 deletions