RFC: s3/smbd: change locking behavior when "lock spin time = 0"

Jeremy Allison jra at samba.org
Fri Feb 12 17:56:03 MST 2010


On Fri, Feb 12, 2010 at 03:53:30PM -0800, Steven Danneman wrote:
> Attached is a patch to change the smbd locking behavior when "lock spin
> time = 0".  Essentially, this reverts the behavior back to the Samba 3.0
> semantics where do_spin_lock() was used.
> 
>  
> 
> This is useful for naughty clients who spam the server with trylocks and
> don't want to be slowed down.  Specifically, I'm using this for a client
> application that will send 20 trylocks in a row when it's contending.
> With the default setting this causes it to wait for several seconds.
> 
>  
> 
> Any comments before I check-in?

I trust you, I'm sure it's right. But I'm going to read it *very*
carefully after it's in :-). Can you say what the application is ?

Jeremy.


More information about the samba-technical mailing list