diff options
author | Stefan Priebe <s.priebe@profihost.ag> | 2013-11-16 15:26:52 -0500 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-12-16 17:04:57 -0500 |
commit | f665c0f852316ff99e9eb7f71f34d43003f8e139 (patch) | |
tree | 000ab708468e8695a9762083cf5cb1d282a3d8b9 /drivers/md | |
parent | 08239ca2a053dbc3b082916bdfbd88e5a9ad9267 (diff) |
bcache: kthread don't set writeback task to INTERUPTIBLE
at the beginning (schedule_timout_interuptible) and others
do his on their own
This prevents wrong load average calculation (load of 1 per thread)
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bcache/writeback.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/bcache/writeback.c b/drivers/md/bcache/writeback.c index 99053b1251be..484e57d7012c 100644 --- a/drivers/md/bcache/writeback.c +++ b/drivers/md/bcache/writeback.c | |||
@@ -500,8 +500,6 @@ int bch_cached_dev_writeback_init(struct cached_dev *dc) | |||
500 | if (IS_ERR(dc->writeback_thread)) | 500 | if (IS_ERR(dc->writeback_thread)) |
501 | return PTR_ERR(dc->writeback_thread); | 501 | return PTR_ERR(dc->writeback_thread); |
502 | 502 | ||
503 | set_task_state(dc->writeback_thread, TASK_INTERRUPTIBLE); | ||
504 | |||
505 | INIT_DELAYED_WORK(&dc->writeback_rate_update, update_writeback_rate); | 503 | INIT_DELAYED_WORK(&dc->writeback_rate_update, update_writeback_rate); |
506 | schedule_delayed_work(&dc->writeback_rate_update, | 504 | schedule_delayed_work(&dc->writeback_rate_update, |
507 | dc->writeback_rate_update_seconds * HZ); | 505 | dc->writeback_rate_update_seconds * HZ); |