Bug 12797 - smb2 leases=yes incompatible with gpfs:leases=yes
Summary: smb2 leases=yes incompatible with gpfs:leases=yes
Status: ASSIGNED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: VFS Modules (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Ralph Böhme
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
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.