]> Zhao Yanbai Git Server - minix.git/commit
VFS: change locking to ease concurrent FSes
authorThomas Veerman <thomas@minix3.org>
Fri, 21 Dec 2012 15:30:37 +0000 (15:30 +0000)
committerThomas Veerman <thomas@minix3.org>
Fri, 11 Jan 2013 09:18:35 +0000 (09:18 +0000)
commit23c5f56e329e9900155a740b947eaaabc30de1f4
tree6a1beb548ce002896a833034cadd6972f54adf4c
parent93103f497f36ca5ce66d8334a1dac2a364ad0b14
VFS: change locking to ease concurrent FSes

This patch uses stricter locking for REQ_LINK, REQ_MKDIR, REQ_MKNOD,
REQ_RENAME, REQ_RMDIR, REQ_SLINK and REQ_UNLINK. For all requests, VFS
locks the directory in which we add or remove an inode with VNODE_WRITE.
I.e., the operations have exclusive access to that directory.

Furthermore, REQ_CHOWN, REQ_CHMOD, and REQ_FTRUNC now lock the vmnt
VMNT_READ; VMNT_WRITE was unnecessary.
servers/vfs/link.c
servers/vfs/open.c
servers/vfs/path.c
servers/vfs/protect.c