]> Zhao Yanbai Git Server - minix.git/commit
VFS: fix deadlock when out of worker threads
authorThomas Veerman <thomas@minix3.org>
Wed, 14 Nov 2012 13:12:37 +0000 (13:12 +0000)
committerThomas Veerman <thomas@minix3.org>
Wed, 14 Nov 2012 13:12:37 +0000 (13:12 +0000)
commitbadec36b331e6422762876434086f6c897a38188
tree3fa7c4a947a7d331e670df45d04a16e939ca3345
parent6cf98dbe00d10dca91f35136e9739948b11d7a23
VFS: fix deadlock when out of worker threads

There is a deadlock vulnerability when there are no worker threads
available and all of them blocked on a worker thread that's waiting for a
reply from a driver or a reply from an FS that needs to make a back call. In
these cases the deadlock resolver thread should kick in, but didn't in all
cases. Moreover, POSIX calls from File Servers weren't handled properly
anymore, which also could lead to deadlocks.
servers/vfs/dmap.c
servers/vfs/fproc.h
servers/vfs/main.c
servers/vfs/mount.c