X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Ffork.c;h=987b28a1f01b6c6ce5d554eb22d9c89e1cde1e7b;hb=c9bccef6b98ae563f725f6e315d8adc685239781;hp=7d40687b14344a934437d91ae3a8be065980c466;hpb=d75e2f902318cc20f3218e6823fe5463a8126bde;p=~andy%2Flinux diff --git a/kernel/fork.c b/kernel/fork.c index 7d40687b143..987b28a1f01 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -70,6 +70,7 @@ #include #include #include +#include #include #include @@ -1303,6 +1304,10 @@ static struct task_struct *copy_process(unsigned long clone_flags, p->memcg_batch.do_batch = 0; p->memcg_batch.memcg = NULL; #endif +#ifdef CONFIG_BCACHE + p->sequential_io = 0; + p->sequential_io_avg = 0; +#endif /* Perform scheduler related setup. Assign this task to a CPU. */ sched_fork(p);