difference between io_schedule() and schedule()

Mulyadi Santosa mulyadi.santosa at gmail.com
Wed Aug 10 03:37:26 EDT 2011


Hi Rajat...

On Tue, Aug 9, 2011 at 09:30, Rajat Sharma <fs.rajat at gmail.com> wrote:
> of course I looked at the source (obvious first step) before asking
> question and further following tsk->in_iowait, it seems it is just
> needed for accounting purpose.
>
>                        if (tsk->in_iowait) {
>                                se->statistics.iowait_sum += delta;
>                                se->statistics.iowait_count++;
>                                trace_sched_stat_iowait(tsk, delta);
>                        }
>
> Wanted to be sure of "is that it all about"? or I am missing something here?

I got a feeling that the main show is:
       blk_flush_plug(current);
that name somehow indicates it is "forcing" read/write to happen,
either real soon or at the earliest moment possible...


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list