diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2016-08-31 18:17:24 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2016-09-14 13:56:38 -0400 |
commit | c533f249a166142df4294ec38fa5dcd1903f0400 (patch) | |
tree | a4ed021aaf742e50abee26296711e9c09d01547c | |
parent | f10e06b744074824fb8ec7066bc03ecc90918f5b (diff) |
dm rq: simplify dm_old_stop_queue()
This patch does not change any functionality.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
-rw-r--r-- | drivers/md/dm-rq.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index bd3ba97d44a2..0d301d5a4d0b 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c | |||
@@ -98,12 +98,8 @@ static void dm_old_stop_queue(struct request_queue *q) | |||
98 | unsigned long flags; | 98 | unsigned long flags; |
99 | 99 | ||
100 | spin_lock_irqsave(q->queue_lock, flags); | 100 | spin_lock_irqsave(q->queue_lock, flags); |
101 | if (blk_queue_stopped(q)) { | 101 | if (!blk_queue_stopped(q)) |
102 | spin_unlock_irqrestore(q->queue_lock, flags); | 102 | blk_stop_queue(q); |
103 | return; | ||
104 | } | ||
105 | |||
106 | blk_stop_queue(q); | ||
107 | spin_unlock_irqrestore(q->queue_lock, flags); | 103 | spin_unlock_irqrestore(q->queue_lock, flags); |
108 | } | 104 | } |
109 | 105 | ||