projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92f2505
)
writeback: don't use schedule_timeout() without setting runstate
author
Jens Axboe
<jens.axboe@oracle.com>
Thu, 17 Sep 2009 17:56:01 +0000
(19:56 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 21 Sep 2009 13:40:33 +0000
(15:40 +0200)
Just use schedule_timeout_interruptible(), saves a call to
set_current_state().
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
mm/page-writeback.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/page-writeback.c
b/mm/page-writeback.c
index 1eea4fa0d410d59603d283d3c3cbf86bbf25d19d..2585349469e0893521dacfa5c3a062e938ecbb92 100644
(file)
--- a/
mm/page-writeback.c
+++ b/
mm/page-writeback.c
@@
-561,7
+561,7
@@
static void balance_dirty_pages(struct address_space *mapping)
if (pages_written >= write_chunk)
break; /* We've done our duty */
- schedule_timeout(1);
+ schedule_timeout
_interruptible
(1);
}
if (bdi_nr_reclaimable + bdi_nr_writeback < bdi_thresh &&