SMB durable handle reclaim lease sometimes fails
While investigating another problem we noticed that when more than one durable handle shares a lease, only one of them (the lease owner) can be reclaimed.
Updated by Gordon Ross 4 months ago
The error here is from something missed when leases were added.
In the function smb_dh_should_save, we need to look at the state of
the lease when a durable handle has a lease. When a DH has a lease,
the oplock "grant" is stored in the lease (ls_state) and when the DH
is an ordinary oplock, the "grant" is in f_oplock.og_state (simple fix).
Updated by Electric Monk 3 months ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit 0ce4dc6f60780f39ce4f196fc1b9804379141eb7 Author: Gordon Ross <firstname.lastname@example.org> Date: 2021-07-15T19:43:31.000Z 13874 SMB durable handle reclaim lease sometimes fails Reviewed by: Matt Barden <email@example.com> Reviewed by: Prashanth Badari <firstname.lastname@example.org> Reviewed by: Andrew Stormont <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Approved by: Garrett D'Amore <email@example.com>