Commit 958114da authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Commenting

parent 8838884f
...@@ -27,6 +27,22 @@ ...@@ -27,6 +27,22 @@
* *
* VSM stuff common to manager and child. * VSM stuff common to manager and child.
* *
* We have three potential conflicts we need to lock against here:
*
* VSM-studying programs (varnishstat...) vs. everybody else
* The VSM studying programs only have read-only access to the VSM
* so everybody else must use memory barriers, stable storage and
* similar tricks to keep the VSM image in sync (long enough) for
* the studying programs.
*
* Manager process vs child process.
* Will only muck about in VSM when child process is not running
* Responsible for cleaning up any mess left behind by dying child.
*
* Child process threads
* Pthread locking necessary.
*
* XXX: not all of this is in place yet.
*/ */
#include "config.h" #include "config.h"
...@@ -89,7 +105,7 @@ vsm_cleanup(void) ...@@ -89,7 +105,7 @@ vsm_cleanup(void)
if (sha == NULL) if (sha == NULL)
return; return;
seq = vsm_mark(); seq = vsm_mark();
/* First pass, free, and collaps with next if applicable */ /* First pass, free, and collapse with next if applicable */
VSM_ITER(sha) { VSM_ITER(sha) {
if (strcmp(sha->class, VSM_CLASS_COOL)) if (strcmp(sha->class, VSM_CLASS_COOL))
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment