projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20e493a
)
cfq-iosched: never allow an async queue idling
author
Jens Axboe
<jens.axboe@oracle.com>
Thu, 19 Apr 2007 12:32:26 +0000
(14:32 +0200)
committer
Jens Axboe
<axboe@nelson.home.kernel.dk>
Mon, 30 Apr 2007 07:01:22 +0000
(09:01 +0200)
We don't enable it by default, don't let it get enabled during
runtime.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c
patch
|
blob
|
blame
|
history
diff --git
a/block/cfq-iosched.c
b/block/cfq-iosched.c
index 839086dcb0af51491c0d44c012292fdeeaf2d898..df82755ac40be58e4b4851ff9ef62edd79f05261 100644
(file)
--- a/
block/cfq-iosched.c
+++ b/
block/cfq-iosched.c
@@
-1603,7
+1603,12
@@
static void
cfq_update_idle_window(struct cfq_data *cfqd, struct cfq_queue *cfqq,
struct cfq_io_context *cic)
{
- int enable_idle = cfq_cfqq_idle_window(cfqq);
+ int enable_idle;
+
+ if (!cfq_cfqq_sync(cfqq))
+ return;
+
+ enable_idle = cfq_cfqq_idle_window(cfqq);
if (!cic->ioc->task || !cfqd->cfq_slice_idle ||
(cfqd->hw_tag && CIC_SEEKY(cic)))