From: Jens Axboe Date: Wed, 15 Apr 2009 10:11:10 +0000 (+0200) Subject: cfq-iosched: no need to save interrupts in cfq_kick_queue() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=40bb54d197a10fe86d73073ee8202ba2812a05fa;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git cfq-iosched: no need to save interrupts in cfq_kick_queue() It's called from the workqueue handlers from process context, so we always have irqs enabled when entered. Signed-off-by: Jens Axboe --- diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index 56e9d8503cf1..e59f2108272f 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c @@ -2157,11 +2157,10 @@ static void cfq_kick_queue(struct work_struct *work) struct cfq_data *cfqd = container_of(work, struct cfq_data, unplug_work); struct request_queue *q = cfqd->queue; - unsigned long flags; - spin_lock_irqsave(q->queue_lock, flags); + spin_lock_irq(q->queue_lock); blk_start_queueing(q); - spin_unlock_irqrestore(q->queue_lock, flags); + spin_unlock_irq(q->queue_lock); } /*