On 10/30/05, Hui Cheng <hcheng@xxxxxxxxxxx> wrote: > > I was wrong on this topic, the reading process sleeps on the > do_generic_mapping_read(), when it needs actually read from disk. It is > mapping->a_ops->readpage(filp, page). This function submits a request and > return. Then, if the page is not up to date, the process will turn to > sleep until the bio->bi_end_io is called to unlock the page and wakes up > all processors waiting for this page. So, I was totally wrong on my guess. > Fawad's thinking is more close to the facts. > Ya, I missed this thing which you got now :) And Thanks for telling me too ! -- Fawad Lateef P.S. __Please don't do Top Posting. See http://www.caliburn.nl/topposting.html -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/