diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2009-04-15 06:11:10 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-04-15 06:11:10 -0400 |
commit | 40bb54d197a10fe86d73073ee8202ba2812a05fa (patch) | |
tree | b0555a89cd9e40abbcdd420cdfb4a9113cd67042 | |
parent | c2572f2b4ffc27ba79211aceee3bef53a59bb5cd (diff) |
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 <jens.axboe@oracle.com>
-rw-r--r-- | block/cfq-iosched.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) | |||
2157 | struct cfq_data *cfqd = | 2157 | struct cfq_data *cfqd = |
2158 | container_of(work, struct cfq_data, unplug_work); | 2158 | container_of(work, struct cfq_data, unplug_work); |
2159 | struct request_queue *q = cfqd->queue; | 2159 | struct request_queue *q = cfqd->queue; |
2160 | unsigned long flags; | ||
2161 | 2160 | ||
2162 | spin_lock_irqsave(q->queue_lock, flags); | 2161 | spin_lock_irq(q->queue_lock); |
2163 | blk_start_queueing(q); | 2162 | blk_start_queueing(q); |
2164 | spin_unlock_irqrestore(q->queue_lock, flags); | 2163 | spin_unlock_irq(q->queue_lock); |
2165 | } | 2164 | } |
2166 | 2165 | ||
2167 | /* | 2166 | /* |