Re: question on SMP and read()/write()

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sat Oct 28 2000 - 11:19:18 EST


> 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 ?

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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



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