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:
94b5eb2
)
block: add comment on why we save and disable interrupts in flush_plug_list()
author
Jens Axboe
<jaxboe@fusionio.com>
Tue, 12 Apr 2011 08:11:24 +0000
(10:11 +0200)
committer
Jens Axboe
<jaxboe@fusionio.com>
Tue, 12 Apr 2011 08:12:29 +0000
(10:12 +0200)
It's done at the top to avoid doing it for every queue we unplug.
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-core.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-core.c
b/block/blk-core.c
index d20ce1e849c82694c06c05d47dbfa405f5ca01eb..0c0ea10e61ea4bbe57a508734195324f16218043 100644
(file)
--- a/
block/blk-core.c
+++ b/
block/blk-core.c
@@
-2696,6
+2696,11
@@
static void flush_plug_list(struct blk_plug *plug)
q = NULL;
depth = 0;
+
+ /*
+ * Save and disable interrupts here, to avoid doing it for every
+ * queue lock we have to take.
+ */
local_irq_save(flags);
while (!list_empty(&list)) {
rq = list_entry_rq(list.next);