directory lease handling perf bug
Ralph Boehme
slow at samba.org
Wed Apr 9 06:12:20 UTC 2025
Hi Steve,
On 4/9/25 12:08 AM, Steve French wrote:
> The dir_context passed into cifs_readdir() never seems to match the
> cached dir_ctxt pointer so we won't set cde->is_valid. On each call to
> cifs_readdir (for the same directory) it looks like ctx is different.
when doing some quick testing yesterday I had noticed that for a simple
ls -l test the SMB2_FIND is not done on then SMB2_CREATE that acquired
the RH lease: I see two SMB2_CREATE on the directory, the first one
grabs the RH lease and the second one is used for the query-dir. Guess
that explains it?
-slow
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20250409/06cbd550/OpenPGP_signature.sig>
More information about the samba-technical
mailing list