blk-mq/cpu-notif: Convert to new hotplug state machine

Replace the block-mq notifier list management with the multi instance
facility in the cpu hotplug state machine.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-block@vger.kernel.org
Cc: rt@linutronix.de
Cc: Christoph Hellwing <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
Thomas Gleixner
2016-09-22 08:05:17 -06:00
committed by Jens Axboe
parent 5dfcfb02e1
commit 9467f85960
5 changed files with 15 additions and 105 deletions

View File

@@ -7,12 +7,6 @@
struct blk_mq_tags;
struct blk_flush_queue;
struct blk_mq_cpu_notifier {
struct list_head list;
void *data;
int (*notify)(void *data, unsigned long action, unsigned int cpu);
};
struct blk_mq_hw_ctx {
struct {
spinlock_t lock;
@@ -53,7 +47,7 @@ struct blk_mq_hw_ctx {
struct delayed_work delay_work;
struct blk_mq_cpu_notifier cpu_notifier;
struct hlist_node cpuhp_dead;
struct kobject kobj;
unsigned long poll_considered;