Thread (5 messages) flat view 5 messages, 3 authors, 2011-08-10

difference between io_schedule() and schedule()

From: Mulyadi Santosa <hidden>
Date: 2011-08-10 07:37:26

Hi Rajat...

On Tue, Aug 9, 2011 at 09:30, Rajat Sharma [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help