Project

General

Profile

Actions

Bug #9619

closed

SMB operations by some applications with windows 7 clients take an absurdly long time to respond when oplock is enabled

Added by Adam Stylinski over 5 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cifs - CIFS server and client
Start date:
2018-06-19
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

This bug appears to happen in Excel and Word, with Microsoft Security Essentials installed. Microsoft's SMB implementation appears unaffected, and simply disabling oplock, as suggested by this thread (and the linked threads within) seems to eliminate the issue entirely:

https://serverfault.com/questions/799295/omnios-zfs-windows-7-save-as-from-within-applications-lags-5-seconds-for-all

Actions #1

Updated by Andrew Stormont about 4 years ago

I suspect this is related to the hangs and timeouts we see when running the Windows Protocol Test Suites against our SMB stack.

Actions #2

Updated by Gordon Ross about 4 years ago

We had this problem (long ago) in our product. The reason for the delay was that the Windows client was failing to respond to an oplock break request (like an NFS cache delegation recall). We opened a case with MS and found that Windows has a minor defect exposed with old-style oplocks (and not exposed with leases) where oplock break request processing on the client may be blocked while another open on the same object is in progress. The advice from MS was basically, "Well, aren't you planning to implement leases?" and that's what we did.

SMB2 leases are there since #11016 integrated. With that integrated, I don't believe this issue is reproducible anymore.
Anyone mind if we just close this? If on the other hand this IS still reproducible, please provide a network capture.

Actions #3

Updated by Gordon Ross about 4 years ago

  • Status changed from New to Feedback
  • Assignee set to Gordon Ross
Actions #4

Updated by Andrew Stormont about 4 years ago

Go for it.

Actions #5

Updated by Gordon Ross almost 3 years ago

  • Status changed from Feedback to Resolved
Actions #6

Updated by Gordon Ross almost 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF