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

CP-46777: don't issue new requests if there are failed to retry #388

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MarkSymsCtx
Copy link
Contributor

When there are requests queued in the failed_requests list to be retried don't issue any new ones.

When there are requests queued in the failed_requests list to be
retried don't issue any new ones.

Signed-off-by: Mark Syms <mark.syms@citrix.com>
@@ -1654,6 +1654,10 @@ tapdisk_vbd_issue_new_requests(td_vbd_t *vbd)
int err;
td_vbd_request_t *vreq, *tmp;

if (!list_empty(&vbd->failed_requests)) {
return -EBUSY;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just trying to follow the logic here... if we return -EBUSY here, this will cause tapdisk_server_recheck_vbds() to return 0 (assuming there is only a single vbd) which will cause tapdisk_server_iterate() to go back and wait for events.

At that point, the only thing that will cause tapdisk to wake up and submit the new requests is if one of the failed requests completes or times out. Is that correct?

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

4 participants