lkml.org 
[lkml]   [1999]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Multiple simultaneous writes
Date
From
>writes. However, something external to the device driver seems to prevent
>this. If a write is pending, no other writes get through to the driver
>(even though the pending process is nicely sleeping away). Other I/O calls

There's a semaphore protecting the inode from concurrency. Look at sys_write
in fs/read_write.c. I can't think of any easy way to avoid this other than to
manually up and down the semaphore inside your write routine.

p.



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

\
 
 \ /
  Last update: 2005-03-22 13:49    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog