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

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

  • Next message: Andrew Morton: "Re: RTNL assert"

    > 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 : Sat Oct 28 2000 - 12:21:38 EDT