projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f10e06b
)
dm rq: simplify dm_old_stop_queue()
author
Bart Van Assche
<bart.vanassche@sandisk.com>
Wed, 31 Aug 2016 22:17:24 +0000
(15:17 -0700)
committer
Mike Snitzer
<snitzer@redhat.com>
Wed, 14 Sep 2016 17:56:38 +0000
(13:56 -0400)
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>
drivers/md/dm-rq.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-rq.c
b/drivers/md/dm-rq.c
index bd3ba97d44a236cc0862b227ce1101cf0d28e4d2..0d301d5a4d0bda3a3c0be028e32a65c1c21947c2 100644
(file)
--- 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);
}