]> Zhao Yanbai Git Server - minix.git/commit
VFS: suspend threads for live update 65/3165/1
authorDavid van Moolenbroek <david@minix3.org>
Mon, 24 Aug 2015 20:44:26 +0000 (22:44 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 17 Sep 2015 17:13:46 +0000 (17:13 +0000)
commit728b0e5b34f86324dd11c688da77a8efa7de8c66
tree1ab8c540378d3e1f714ad2760126553e2385cbae
parent129adfeb539ca3844b1e1d755bfe5e193eb4bb5d
VFS: suspend threads for live update

- do not allow live update for request and protocol free states if
  there are any worker threads that have pending or active work;
- destroy all worker threads before such live updates and recreate
  them afterwards, because transferring (the contents of) the
  thread stacks is not an option at this time;
- recreate worker threads in the new instance only if they were
  shut down before the state transfer, by letting RS provide the
  original preparation state as initialization information.

Change-Id: I846225f5b7281f19e69175485f2c88a4b4891dc2
minix/include/minix/ipc.h
minix/include/minix/sef.h
minix/lib/libsys/sef_init.c
minix/servers/rs/utility.c
minix/servers/vfs/main.c
minix/servers/vfs/proto.h
minix/servers/vfs/threads.h
minix/servers/vfs/worker.c