Concurrent read/writes on the same file
HARAWAT.IN.ORACLE.COM (HARAWAT.IN.oracle.com.ofcmail@in.oracle.com)
07 Dec 98 20:38:42 +0330
In FreeBSD the vn_read function looks like this
lock the vnode
do the actual read
unlock the vnode
So it means that one read/write will execute in the kernel at one point of
time, the second read/write will block while trying to lock the vnode. Is the
same algo used in Linux also. Is the same algo used for the Raw Devices as
well.
Thanks
Harish
-
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/