re-using buffer_head

From: Badrinath Venkatachari (
Date: Thu Apr 27 2000 - 15:12:15 EST

  When make_request() is called from ll_rw_block() for disk I/O, it first
finds out if the buffer_head is uptodate. If the buffer_head is uptodate,
then it returns...

 What I want to do is to make make_request() return if the buffer_head
passed to it is NOT uptodate and have a piece of code inside ll_rw_block()
which checks for the return without being satisfied from the cache and
blocks for sometime before calling make_request() again but this time to
get the data from the disk instead. To do this, is it legal if i use the
same buffer_head that i had when I tried the first time...Are there any
issues that i have to be careful about like the buffer_head being given to
another process ???

(Assume that i have extended the buffer_head to include information that
would force make_request() to let it go through the second time to get
data from the disk without simply returning as in the first instance).



To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:13 EST