question on SMP and read()/write()
Hi,
I've noticed that sys_read() and sys_write() don't grab the big kernel lock. As file descriptors may be shared, must device drivers provide SMP safe read() and write() methods ?
TIA
Oliver
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 3 lines
I've noticed that
sys_read()andsys_write()don't grab the big kernel lock. As file descriptors may be shared, must device drivers provide SMP saferead()andwrite()methods ?
Yes. This is true in 2.2 as well although the inode lock provides some protection on writes.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/