diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2016-09-06 20:04:46 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2016-09-19 22:44:29 +0300 |
commit | 8904f5a5afc4dd74e8fe2ab3eeb98018ef02f3e6 (patch) | |
tree | 7ccdcb19dabfc8dec5b77b3a8200005a23cf8b1c /include/acpi/processor.h | |
parent | a4e0591ece7d88634a802c4076db8c0debbde805 (diff) | |
download | linux-8904f5a5afc4dd74e8fe2ab3eeb98018ef02f3e6.tar.xz |
virtio scsi: Convert to hotplug state machine
Install the callbacks via the state machine. It uses the multi instance
infrastructure of the hotplug code to handle each interface.
virtscsi_set_affinity() is removed from virtscsi_init() because
virtscsi_cpu_notif_add() (the function which registers the instance) is invoked
right after it and the cpuhp_state_add_instance() functions invokes the startup
callback on all online CPUs.
The same thing can not be applied virtscsi_cpu_notif_remove() because
virtscsi_remove_vqs() invokes virtscsi_set_affinity() with affinity = false as
argument but the old CPU_DEAD state invoked the function with affinity = true
(which does not match the DEAD callback).
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
Cc: linux-scsi@vger.kernel.org
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: virtualization@lists.linux-foundation.org
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20160906170457.32393-11-bigeasy@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/acpi/processor.h')
0 files changed, 0 insertions, 0 deletions