Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c533f249 authored by Bart Van Assche's avatar Bart Van Assche Committed by Mike Snitzer
Browse files

dm rq: simplify dm_old_stop_queue()



This patch does not change any functionality.

Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent f10e06b7
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -98,11 +98,7 @@ 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;
	}

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