Child crashes when the backend is down

Poul-Henning Kamp phk at phk.freebsd.dk
Wed May 2 10:46:14 CEST 2007


In message <ujr1whzvco5.fsf at false.linpro.no>, Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= writes:
>"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
>> o->busy is protected by the objhead mutex because otherwise we would have
>> to grab all the objects mutexes in the hash lookup.
>>
>> The busy flag is very seldomly manipulated, and this is much more efficie=
>nt.
>
>Fine, but what is the locking protocol when o has no objhead?

Obviously nobody else will ever check the busy flag in that case,
so the locking isn't necessary.

-- 
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