Bug 12797 - smb2 leases=yes incompatible with gpfs:leases=yes
smb2 leases=yes incompatible with gpfs:leases=yes
Status: ASSIGNED
Product: Samba 4.1 and newer
Classification: Unclassified
Component: VFS Modules
unspecified
All All
: P5 normal
: ---
Assigned To: Ralph Böhme
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-22 07:12 UTC by Ralph Böhme
Modified: 2017-05-22 07:14 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Böhme 2017-05-22 07:12:34 UTC
The SMB2 leases capability is determined at the negprot stage whereas the the check for gpfs:leases is done in vfs_gpfs at the tcon stage.

As the latter enables kernel oplocks if gpfs:leases this results in an incompatible runtime config: SMB2 leases enabled and kernel oplocks enabled.

The following messages are an indication for this:

  linux_release_kernel_oplock: Error when removing kernel oplock on file ... 
  Error was Resource temporarily unavailable

I think we need a check in vfs_gpfs that detects this incompatible setting, log an descriptive error message and deny access.