From: Jens Axboe Date: Thu, 27 Jul 2017 14:03:57 +0000 (-0600) Subject: blk-mq: blk_mq_requeue_work() doesn't need to save IRQ flags X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18e9781d44000bcb403941011d954896df7439cc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git blk-mq: blk_mq_requeue_work() doesn't need to save IRQ flags We know we're in process context, so don't bother using the IRQ safe versions of the spin lock. Signed-off-by: Jens Axboe --- diff --git a/block/blk-mq.c b/block/blk-mq.c index 041f7b7fa0d6..b70a4ad78b63 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -620,11 +620,10 @@ static void blk_mq_requeue_work(struct work_struct *work) container_of(work, struct request_queue, requeue_work.work); LIST_HEAD(rq_list); struct request *rq, *next; - unsigned long flags; - spin_lock_irqsave(&q->requeue_lock, flags); + spin_lock_irq(&q->requeue_lock); list_splice_init(&q->requeue_list, &rq_list); - spin_unlock_irqrestore(&q->requeue_lock, flags); + spin_unlock_irq(&q->requeue_lock); list_for_each_entry_safe(rq, next, &rq_list, queuelist) { if (!(rq->rq_flags & RQF_SOFTBARRIER))