Note that struct file, struct dir are per-thread.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 8 Dec 2006 14:52:37 +0000 (14:52 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 8 Dec 2006 14:52:37 +0000 (14:52 +0000)
From Godmar Back.

doc/filesys.texi

index 1605b2d9b88638fd36ae37a332de85e214120293..f245daa48ea1e6d592a86146ddddf9947ca9cffe 100644 (file)
@@ -394,6 +394,10 @@ if B's data is all nonzero bytes, A is not allowed to see any zeros.
 Operations on different directories should take place concurrently.
 Operations on the same directory may wait for one another.
 
 Operations on different directories should take place concurrently.
 Operations on the same directory may wait for one another.
 
+Keep in mind that only data shared by multiple threads needs to be
+synchronized.  In the base file system, @struct{file} and @struct{dir}
+are accessed only by a single thread.
+
 @node Project 4 FAQ
 @section FAQ
 
 @node Project 4 FAQ
 @section FAQ