Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-390490: remove override of blktap request timeout #680

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

MarkSymsCtx
Copy link
Contributor

When this code was orginally added there was no default value for the nfs_timeout and so the timeout would only have been used if

  1. The SR type was NFS
  2. The SR had a overriden setting for nfs-timeout in the other-config

Since that time the calculation of the NFS client timeout has been changed considerably and is set with a balance between timeo and retrans values. In particular the get_nfs_timeout method will now always return a non-zero value. This results in the SM always applying a request timeout to blktap of 50 seconds (unless the timeo value has been set in the SR device config), which is considerably lower than the default request timeout in blktap itself which is 120 seconds.

NFS protocol timeouts are also no longer considered to be retryable errors within blktap so tying the timeout value to the NFS timeout, even if it were correctly calculated taking into account the retrans value, is effectively comparing two unrelated things.

When this code was orginally added there was no default value for the
nfs_timeout and so the timeout would only have been used if
1. The SR type was NFS
2. The SR had a overriden setting for nfs-timeout in the other-config

Since that time the calculation of the NFS client timeout has been
changed considerably and is set with a balance between timeo and
retrans values. In particular the get_nfs_timeout method will now
always return a non-zero value.  This results in the SM always
applying a request timeout to blktap of 50 seconds (unless the timeo
value has been set in the SR device config), which is considerably
lower than the default request timeout in blktap itself which is 120
seconds.

NFS protocol timeouts are also no longer considered to be retryable
errors within blktap so tying the timeout value to the NFS timeout,
even if it were correctly calculated taking into account the retrans
value, is effectively comparing two unrelated things.

Signed-off-by: Mark Syms <mark.syms@citrix.com>
@MarkSymsCtx MarkSymsCtx merged commit 4227426 into xapi-project:master Mar 26, 2024
2 checks passed
@MarkSymsCtx MarkSymsCtx deleted the CA-390490 branch March 26, 2024 11:41
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.

None yet

3 participants