From: Paulo Alcantara <pc@manguebit.com>
To: Shyam Prasad N <nspmangalore@gmail.com>
Cc: Bharath SM <bharathsm.hsk@gmail.com>,
Steve French <smfrench@gmail.com>,
linux-cifs@vger.kernel.org, David Howells <dhowells@redhat.com>,
Pierguido Lambri <plambri@redhat.com>,
Bharath S M <bharathsm@microsoft.com>
Subject: Re: [PATCH] smb: client: fix delay on concurrent opens
Date: Mon, 12 May 2025 10:31:15 -0300 [thread overview]
Message-ID: <3d60f40bbcd3d297b860f4359bf63def@manguebit.com> (raw)
In-Reply-To: <CANT5p=r2-Sm-9=jPY0YM1mV4J0H5fOG31WSZ+E_4dKqNcNJ_Kg@mail.gmail.com>
Shyam Prasad N <nspmangalore@gmail.com> writes:
> I think this version of the patch will be more problematic, as it will
> open up a time window between the lease break ack and the file close.
> Which is why we moved the _cifsFileInfo_put above as it is today.
Can you explain why it would be a problem sending a lease break ack
and then closing the file?
Do you have any reproducers for such problem?
> Specifically, it is still not clear to me what was the exact bug that
> your customer hit. And why is your patch fixing that issue? Can you
> please elaborate on that?
(1) CREATE foo
(2) CREATE resp
(3) CREATE foo
(4) LEASE BREAK (RWH -> RW)
(5) CLOSE foo
(6) CLOSE resp
...30s later...
(7) CREATE resp for (3)
Windows Server is delaying the CREATE request in (3) by 30s because the
client hasn't sent the lease break ack for (4).
Since the client closed the last open handle,
!list_empty(&cinode->openFileList) is obviously false and hence the
lease break ack isn't sent.
Pierguido suggested 'closetimeo=0' to the customer and it seemed to help
them with the performance issues due to delayed opens.
What is your suggestion to get rid of this optimization and then sending
lease break acks regardless whether there are open handles or not?
> On RWH to RW lease break, we would force close all deferred handles.
> But any active handles (that are still kept open by the user) will
> continue to remain open. Which is what this check is about.
The check you're referring to is related to whether or not sending lease
break acks. What do you mean about "continue to remain open"?
next prev parent reply other threads:[~2025-05-12 13:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-28 14:05 [PATCH] smb: client: fix delay on concurrent opens Paulo Alcantara
2025-04-28 14:40 ` Steve French
2025-04-28 14:44 ` Paulo Alcantara
2025-04-30 14:15 ` Steve French
2025-04-30 19:14 ` Paulo Alcantara
[not found] ` <CAH2r5mu74CbSKRVi0P7LD57j3t=KxqLX_M6V+qvi-aRE2t9YTw@mail.gmail.com>
2025-04-30 19:44 ` Paulo Alcantara
2025-05-05 10:41 ` Bharath SM
2025-05-05 13:12 ` Paulo Alcantara
2025-05-05 14:16 ` Bharath SM
2025-05-05 15:05 ` Paulo Alcantara
2025-05-09 11:22 ` Shyam Prasad N
2025-05-12 13:31 ` Paulo Alcantara [this message]
2025-05-12 22:47 ` Steve French
2025-05-12 22:57 ` Paulo Alcantara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3d60f40bbcd3d297b860f4359bf63def@manguebit.com \
--to=pc@manguebit.com \
--cc=bharathsm.hsk@gmail.com \
--cc=bharathsm@microsoft.com \
--cc=dhowells@redhat.com \
--cc=linux-cifs@vger.kernel.org \
--cc=nspmangalore@gmail.com \
--cc=plambri@redhat.com \
--cc=smfrench@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox