[PATCH 02/10] Add a BAN_Shutdown() routine that is called before STV_Close(), and makes sure that the ban lists will not change until we exit.
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Oct 22 11:44:24 CEST 2012
--------
In message <1349879243-30369-2-git-send-email-martin at varnish-software.com>, Mar
tin Blix Grydeland writes:
I'm not happy with this one, it risks creating a pile-up of workers
which are trying to add bans's from VCL, and it does not shut down
the lurker in any meaningful way.
Add a private flag in cache_ban.c which indicates that a shutdown
is in progress, set it in the BAN_Shutdown() function.
When this flag is set, all attempts to add bans should fail before
trying to grab the mutex.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-dev
mailing list