When and how does Samba discover that the client has failed so that locks that the client held as released. I'm using samba for critical data so oplocks are off. My client gets an exclusive lock on the file. If the client process dies then the OS cleans up the socket and the lock is released. When there is a power failure or network unplug event, how does samba determine that the lock held by that client should be released given the socket may not be closed for the KEEP_ALIVE interval? How would I tune Samba to release the lock in a guaranteed maximum amount of time similar to the lease expiration on nfs v4. Thanks Billy