bcache: kthread don't set writeback task to INTERUPTIBLE
authorStefan Priebe <s.priebe@profihost.ag>
Sat, 16 Nov 2013 20:26:52 +0000 (21:26 +0100)
committerKent Overstreet <kmo@daterainc.com>
Mon, 16 Dec 2013 22:04:57 +0000 (14:04 -0800)
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>
drivers/md/bcache/writeback.c

index 99053b1251bea1049c627580f3614d1c18f89b60..484e57d7012c08818305847d378aef4468c7947f 100644 (file)
@@ -500,8 +500,6 @@ int bch_cached_dev_writeback_init(struct cached_dev *dc)
        if (IS_ERR(dc->writeback_thread))
                return PTR_ERR(dc->writeback_thread);
 
-       set_task_state(dc->writeback_thread, TASK_INTERRUPTIBLE);
-
        INIT_DELAYED_WORK(&dc->writeback_rate_update, update_writeback_rate);
        schedule_delayed_work(&dc->writeback_rate_update,
                              dc->writeback_rate_update_seconds * HZ);