Re: difference between io_schedule() and schedule()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rajat...

On Tue, Aug 9, 2011 at 09:30, Rajat Sharma <fs.rajat@xxxxxxxxx> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux