Skip to content

Commit

Permalink
cfq-iosched: no need to save interrupts in cfq_kick_queue()
Browse files Browse the repository at this point in the history
It's called from the workqueue handlers from process context, so
we always have irqs enabled when entered.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
  • Loading branch information
Jens Axboe committed Apr 15, 2009
1 parent c2572f2 commit 40bb54d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit 40bb54d

Please sign in to comment.