Skip to content

Commit

Permalink
dm rq: simplify dm_old_stop_queue()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bart Van Assche authored and Mike Snitzer committed Sep 14, 2016
1 parent f10e06b commit c533f24
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions drivers/md/dm-rq.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,8 @@ static void dm_old_stop_queue(struct request_queue *q)
unsigned long flags;

spin_lock_irqsave(q->queue_lock, flags);
if (blk_queue_stopped(q)) {
spin_unlock_irqrestore(q->queue_lock, flags);
return;
}

blk_stop_queue(q);
if (!blk_queue_stopped(q))
blk_stop_queue(q);
spin_unlock_irqrestore(q->queue_lock, flags);
}

Expand Down

0 comments on commit c533f24

Please sign in to comment.