Skip to content

Commit

Permalink
CP-45025: Avoid retries except in a few specific cases
Browse files Browse the repository at this point in the history
Let the NFS layer control retries instead.

Signed-off-by: Ross Lagerwall <[email protected]>
  • Loading branch information
rosslagerwall authored and MarkSymsCtx committed Sep 7, 2023
1 parent 860c876 commit 1179cd6
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions drivers/tapdisk-vbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1168,19 +1168,17 @@ tapdisk_vbd_request_should_retry(td_vbd_t *vbd, td_vbd_request_t *vreq)
td_flag_test(vbd->state, TD_VBD_SHUTDOWN_REQUESTED))
return 0;

switch (abs(vreq->error)) {
case EPERM:
case ENOSYS:
case ESTALE:
case ENOSPC:
case EFAULT:
return 0;
}

if (tapdisk_vbd_request_timeout(vreq))
return 0;

return 1;
switch (abs(vreq->error)) {
case EAGAIN:
case EBUSY:
case EINTR:
return 1;
}

return 0;
}

static void
Expand Down

0 comments on commit 1179cd6

Please sign in to comment.