projects
/
platform
/
kernel
/
kernel-mfld-blackbay.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
|
history
diff --git
a/mm/page-writeback.c
b/mm/page-writeback.c
index
1eea4fa
..
2585349
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 &&