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

Steven Danneman steven.danneman at isilon.com
Fri Feb 12 16:53:30 MST 2010

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?



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-smbd-change-locking-behavior-when-lock-spin-time-.patch
Type: application/octet-stream
Size: 2970 bytes
Desc: 0001-s3-smbd-change-locking-behavior-when-lock-spin-time-.patch
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100212/815520eb/attachment.obj>

More information about the samba-technical mailing list