Sebastian Andrzej Siewior f9ab49184a blk-mq: Use llist_head for blk_cpu_done
With llist_head it is possible to avoid the locking (the irq-off region)
when items are added. This makes it possible to add items on a remote
CPU without additional locking.
llist_add() returns true if the list was previously empty. This can be
used to invoke the SMP function call / raise sofirq only if the first
item was added (otherwise it is already pending).
This simplifies the code a little and reduces the IRQ-off regions.

blk_mq_raise_softirq() needs a preempt-disable section to ensure the
request is enqueued on the same CPU as the softirq is raised.
Some callers (USB-storage) invoke this path in preemptible context.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-02-12 08:28:02 -07:00
..
2021-01-28 07:31:50 -07:00
2020-08-18 07:48:08 -07:00
2020-08-18 07:48:08 -07:00
2020-08-18 07:48:08 -07:00
2020-12-02 09:46:55 -07:00
2021-01-01 12:58:07 -08:00
2020-12-16 12:57:51 -08:00
2020-12-16 12:57:51 -08:00
2021-01-10 12:53:08 -08:00
2020-10-13 12:12:44 -07:00
2020-09-03 15:20:47 -06:00
2020-03-17 20:55:21 +01:00
2020-12-16 13:09:32 -08:00
2020-05-29 16:30:39 -06:00
2020-12-16 13:09:32 -08:00
2020-09-23 09:18:13 -06:00
2020-01-03 09:33:21 +01:00
2021-01-28 07:31:50 -07:00
2020-10-13 13:04:41 -07:00
2020-01-06 20:59:04 -07:00