From: Bart Van Assche Date: Wed, 31 Aug 2016 22:17:24 +0000 (-0700) Subject: dm rq: simplify dm_old_stop_queue() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c533f249a166142df4294ec38fa5dcd1903f0400;p=linux-beck.git dm rq: simplify dm_old_stop_queue() This patch does not change any functionality. Signed-off-by: Bart Van Assche Signed-off-by: Mike Snitzer --- 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) 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); }