Skip to content

Add timeout to final mount.nfs4 fall-through attempt#348

Open
vmishra22 wants to merge 1 commit into
aws:masterfrom
vmishra22:fix-final-mount-attempt-timeout
Open

Add timeout to final mount.nfs4 fall-through attempt#348
vmishra22 wants to merge 1 commit into
aws:masterfrom
vmishra22:fix-final-mount-attempt-timeout

Conversation

@vmishra22
Copy link
Copy Markdown

@vmishra22 vmishra22 commented May 20, 2026

Issue #, if available:

Description of changes:
The fall-through final mount attempt in mount_nfs() calls proc.communicate() without a timeout. When the FSS data plane intermittently drops connections, the kernel mount.nfs4 syscall with hard,timeo=600,retrans=2 can block this final attempt for 5+ minutes before returning ETIMEDOUT.

This fix applies the same timeout (retry_nfs_mount_command_timeout_sec, default 15s) to the final attempt as is used in the bounded retry loop.

The retry loop at call_nfs_mount_command_with_retry_succeed() runs retry_count - 1 bounded attempts. After they fail, the code falls through to an unbounded final attempt. With the default retry_count=3, worst-case mount time was previously unbounded; now it's (retry_count - 1) * timeout + final_timeout = ~45s by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant