Skip to content

NAS-140229 / 26.0.0-BETA.1 / Call dlm.reset_active when peer disconnects (by bmeagherix)#18433

Merged
yocalebo merged 1 commit intorelease/26.0.0-BETA.1from
NAS-140229-26.0.0-BETA.1
Mar 11, 2026
Merged

NAS-140229 / 26.0.0-BETA.1 / Call dlm.reset_active when peer disconnects (by bmeagherix)#18433
yocalebo merged 1 commit intorelease/26.0.0-BETA.1from
NAS-140229-26.0.0-BETA.1

Conversation

@bugclerk
Copy link
Contributor

Previously reset_active was only called when STANDBY reconnected, leaving DLM RSBs in an inconsistent state for the duration of the outage. Calling it immediately when the peer goes down ensures DLM recovery runs and repairs pending lock lookups before SCST issues new dlm_lock requests during logout_all.

Three guards prevent acting in the wrong context: only runs on MASTER; skips if the peer's DLM port is still reachable (middleware-only restart); skips if we have logged-in extents (we are STANDBY or mid-transition and the failover event is already handling cleanup).

Original PR: #18423

Previously reset_active was only called when STANDBY reconnected, leaving
DLM RSBs in an inconsistent state for the duration of the outage.  Calling
it immediately when the peer goes down ensures DLM recovery runs and repairs
pending lock lookups before SCST issues new dlm_lock requests during
logout_all.

Three guards prevent acting in the wrong context: only runs on MASTER;
skips if the peer's DLM port is still reachable (middleware-only restart);
skips if we have logged-in extents (we are STANDBY or mid-transition and
the failover event is already handling cleanup).

(cherry picked from commit 3398420)
@bugclerk
Copy link
Contributor Author

@yocalebo yocalebo merged commit 8a906b0 into release/26.0.0-BETA.1 Mar 11, 2026
1 check passed
@yocalebo yocalebo deleted the NAS-140229-26.0.0-BETA.1 branch March 11, 2026 17:38
@bugclerk
Copy link
Contributor Author

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Mar 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants