[Samba] oplocks, kernel oplocks, kernel share modes, .. - how it all works?

Jeremy Allison jra at samba.org
Tue Jan 24 17:17:40 UTC 2023


On Tue, Jan 24, 2023 at 08:14:52PM +0300, Michael Tokarev wrote:
>24.01.2023 20:09, Jeremy Allison via samba wrote:
>>On Tue, Jan 24, 2023 at 12:38:29PM +0300, Michael Tokarev via samba wrote:
>>>
>>>Here we've two files open, with kernel oplocks = yes (hence it is LEASE(), -
>>>before I enabled kernel oplocks, it was LEASE(RH) or LEASE(RWH)).
>>
>>Kernel oplocks do not support SMB2+ LEASES. So you're
>>just seeing old SMB1-style oplocks.
>
>Yes, this is exactly what I wrote.
>
>This is not the question though, the question is why kernel oplocks don't
>work when they should, or if it is not the case, how it should be?

Oh I'm sorry, I misunderstood. Sorry, I'm pretty
distracted right now, having just been laid off
from Google :-(. I'll take a closer look at
your original email and try and figure out what
might be the problem.



More information about the samba mailing list