* [PATCH] block: Don't disable interrupts in trigger_softirq()
@ 2019-11-18 11:01 Sebastian Andrzej Siewior
2019-11-18 12:49 ` Ming Lei
2019-11-18 14:29 ` Jens Axboe
0 siblings, 2 replies; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2019-11-18 11:01 UTC (permalink / raw)
To: linux-block; +Cc: Jens Axboe, Thomas Gleixner, Sebastian Andrzej Siewior
trigger_softirq() is always invoked as a SMP-function call which is
always invoked with disables interrupts.
Don't disable interrupt in trigger_softirq() because interrupts are
already disabled.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
block/blk-softirq.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/block/blk-softirq.c b/block/blk-softirq.c
index 457d9ba3eb204..6e7ec87d49faa 100644
--- a/block/blk-softirq.c
+++ b/block/blk-softirq.c
@@ -42,17 +42,13 @@ static __latent_entropy void blk_done_softirq(struct softirq_action *h)
static void trigger_softirq(void *data)
{
struct request *rq = data;
- unsigned long flags;
struct list_head *list;
- local_irq_save(flags);
list = this_cpu_ptr(&blk_cpu_done);
list_add_tail(&rq->ipi_list, list);
if (list->next == &rq->ipi_list)
raise_softirq_irqoff(BLOCK_SOFTIRQ);
-
- local_irq_restore(flags);
}
/*
--
2.24.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] block: Don't disable interrupts in trigger_softirq()
2019-11-18 11:01 [PATCH] block: Don't disable interrupts in trigger_softirq() Sebastian Andrzej Siewior
@ 2019-11-18 12:49 ` Ming Lei
2019-11-18 14:29 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Ming Lei @ 2019-11-18 12:49 UTC (permalink / raw)
To: Sebastian Andrzej Siewior; +Cc: linux-block, Jens Axboe, Thomas Gleixner
On Mon, Nov 18, 2019 at 7:03 PM Sebastian Andrzej Siewior
<bigeasy@linutronix.de> wrote:
>
> trigger_softirq() is always invoked as a SMP-function call which is
> always invoked with disables interrupts.
>
> Don't disable interrupt in trigger_softirq() because interrupts are
> already disabled.
>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
> block/blk-softirq.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/block/blk-softirq.c b/block/blk-softirq.c
> index 457d9ba3eb204..6e7ec87d49faa 100644
> --- a/block/blk-softirq.c
> +++ b/block/blk-softirq.c
> @@ -42,17 +42,13 @@ static __latent_entropy void blk_done_softirq(struct softirq_action *h)
> static void trigger_softirq(void *data)
> {
> struct request *rq = data;
> - unsigned long flags;
> struct list_head *list;
>
> - local_irq_save(flags);
> list = this_cpu_ptr(&blk_cpu_done);
> list_add_tail(&rq->ipi_list, list);
>
> if (list->next == &rq->ipi_list)
> raise_softirq_irqoff(BLOCK_SOFTIRQ);
> -
> - local_irq_restore(flags);
> }
Reviewed-by: Ming Lei <ming.lei@redhat.com>
--
Ming Lei
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] block: Don't disable interrupts in trigger_softirq()
2019-11-18 11:01 [PATCH] block: Don't disable interrupts in trigger_softirq() Sebastian Andrzej Siewior
2019-11-18 12:49 ` Ming Lei
@ 2019-11-18 14:29 ` Jens Axboe
1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2019-11-18 14:29 UTC (permalink / raw)
To: Sebastian Andrzej Siewior, linux-block; +Cc: Thomas Gleixner
On 11/18/19 4:01 AM, Sebastian Andrzej Siewior wrote:
> trigger_softirq() is always invoked as a SMP-function call which is
> always invoked with disables interrupts.
>
> Don't disable interrupt in trigger_softirq() because interrupts are
> already disabled.
Applied, thanks.
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-18 14:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-18 11:01 [PATCH] block: Don't disable interrupts in trigger_softirq() Sebastian Andrzej Siewior
2019-11-18 12:49 ` Ming Lei
2019-11-18 14:29 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.