In message <[email protected]>, Nils Goroll writes:
>On 09/13/13 09:43 AM, Poul-Henning Kamp wrote:

>For the time being: This does not change the fact that the exp thread will 
>still 
>need to lock the objhead list, right?

In the case were somebody else nukes an object (de-dup, length
restriction) the objcore is taken off the objhdr list by that
thread and delivered to EXP on its "inbox" list, so no further
objhdr locking will be required.

The trick is that the objcore can hang out on the exp-inbox list
until its refcount becomes zero.

For LRU and obj.keep expiry, there's no way around locking objhead
if we want to recover the storage in a timely way.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to