bread under kernel 3.3.99pre8

From: BenHanokh Gabriel (gabriel@SANgate.com)
Date: Tue May 23 2000 - 07:47:19 EST


hi

it looks to me as if there is some problem with bread under kernel
3.3.99-pre8

first when i call for some block on device
    bh = bread( dev, block, size )
and than call
   brelse( bh )

it results with the device becoming unmountable ( "...device is busy ")
even so no process is using the device.
lsof also fails for this device

second:
calling bread returns me the disk block and not the cache block
i.e. is i truncate file and write new data to it, calling bread returns
the OLD data( which should have been overwriten by now )

i guess that the write is performs to the buffer-cache, but bread
doesn't know about it, and it reads the block from the disk.
( if i call sync() before bread, i get the new data )

is this a bug of a feature ?

please CC me for any answer
THX
/gabriel

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:23 EST