Skip to content

Commit 1179cd6

Browse files
rosslagerwallMarkSymsCtx
authored andcommitted
CP-45025: Avoid retries except in a few specific cases
Let the NFS layer control retries instead. Signed-off-by: Ross Lagerwall <[email protected]>
1 parent 860c876 commit 1179cd6

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

drivers/tapdisk-vbd.c

+8-10
Original file line numberDiff line numberDiff line change
@@ -1168,19 +1168,17 @@ tapdisk_vbd_request_should_retry(td_vbd_t *vbd, td_vbd_request_t *vreq)
11681168
td_flag_test(vbd->state, TD_VBD_SHUTDOWN_REQUESTED))
11691169
return 0;
11701170

1171-
switch (abs(vreq->error)) {
1172-
case EPERM:
1173-
case ENOSYS:
1174-
case ESTALE:
1175-
case ENOSPC:
1176-
case EFAULT:
1177-
return 0;
1178-
}
1179-
11801171
if (tapdisk_vbd_request_timeout(vreq))
11811172
return 0;
11821173

1183-
return 1;
1174+
switch (abs(vreq->error)) {
1175+
case EAGAIN:
1176+
case EBUSY:
1177+
case EINTR:
1178+
return 1;
1179+
}
1180+
1181+
return 0;
11841182
}
11851183

11861184
static void

0 commit comments

Comments
 (0)