]> err.no Git - varnish/commit
Only move objects to the tail of the LRU queue if we can get the
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 23 Feb 2008 19:54:44 +0000 (19:54 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 23 Feb 2008 19:54:44 +0000 (19:54 +0000)
commita6cc14aea1c437b448c0eec4c955ec633ef284cc
tree2f66a477da6466b89b93359f20009897df14baf0
parentaca62aeceb2f3cf61c840bf884d28dc85eeffd61
Only move objects to the tail of the LRU queue if we can get the
expiry mutex without waiting.

This is in addition to the already present "only if it have not
been moved recently" check.

This additional mutex-contestion reduction obviously might leave
the LRU list badly out of order, but this can be worked around
by examining obj.last_use in vcl_discard()

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2534 d4fa192b-c00b-0410-8231-f00ffab90ce4
varnish-cache/bin/varnishd/cache_expire.c