On Fri, 14 Jun 2013 07:52:44 -0400
Simo <idra@xxxxxxxxx> wrote:
On 06/13/2013 04:26 PM, Jeff Layton wrote:(re-adding back the cc lists...)The only real solution I can think of is to put flock locks into theHow hard would it be to make the procfile stuff optional ?
blocked_list/blocked_hash too, or maybe giving them a simple hlist to
sit on.
I'll fix that up in the next iteration. It'll probably make flock()
tests run slower, but such is the cost of preserving this procfile...
So that those that need performance can decide to not use it ?
Maybe even something that can be disabled at run time ? Not just compile
time.
It'd be tricky, especially if you want to do it at runtime. The
procfile itself is not a problem per-se. The real problem is the
tracking you have to do in order to eventually present the procfile. So
a boot-time or compile-time switch might be reasonable, but a runtime
switch will probably never really be.
I have a new patchset that I'm testing now though that should address
Bruce's concerns about iterating over that global list. So far, it
seems to be at least as fast as the latest patchset I posted.
It makes the (spin)locking a bit more complex, but hopefully I can
document this well enough that it's not a great concern.
Stay tuned...