]> Zhao Yanbai Git Server - minix.git/commit
Resolve boot-time VM/RS deadlock 09/3109/1
authorDavid van Moolenbroek <david@minix3.org>
Fri, 4 Sep 2015 05:04:17 +0000 (07:04 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 17 Sep 2015 13:27:05 +0000 (13:27 +0000)
commit37489f8a24b995dfc498de35eba6b007cf912182
treecd39998873a7ea7b4e5d99affaa17e9e3323c7bd
parent0e78c0166c4c5a4d3ef787d58d41af23958c0edc
Resolve boot-time VM/RS deadlock

VM used to call sendrec to send a boot-time RS_INIT reply to RS, but
RS could run into a pagefault at the same time, thus spawning a
message to VM, resulting in a deadlock.  We resolve this situation by
making VM acknowledge RS_INIT asynchronously at boot time, while
retaining the synchronous sendrec for subsequent RS_INIT responses.

Change-Id: I3cb72d7f8d6b9bfdc59a85958ada739c37fa3bde
minix/include/minix/sef.h
minix/lib/libsys/sef_init.c
minix/servers/rs/main.c
minix/servers/vm/main.c