[Samba] Obtaining lock loop

Jeremy Allison
Thu, 13 Dec 2018 00:44:36 -0000

On Wed, Dec 12, 2018 at 08:13:18PM -0300, Jose Concha via samba
wrote:
> Hello everyone,
>
> I am working with a database shared with samba and sometimes the client and
> server enter in a loop where the client try to obtain a lock to a file and
> the server respond with "STATUS_LOCK_NOT_GRANTED". This situation
can last
> until one of them crash.

This can happen for several different reasons.

> I think in the past lock spin count prevent this from happening. In
> nowadays samba version is there an option that replaces old lock spin
count?

Not for SMB2+, it's not needed. We need to see a wireshark
trace and debug level 10 from smbd showing what is going on in order to debug.