aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorXiubo Li <[email protected]>2022-03-30 14:39:33 +0800
committerIlya Dryomov <[email protected]>2022-05-25 20:45:13 +0200
commit546a5d6122faae161cb59159e8af8518130efeab (patch)
tree2945550fe7b8a92fb38a04ad676d86304e842e94 /lib/netdev-notifier-error-inject.c
parent1980b1bf17a4975fee5ee42df167f50f7f67b3d9 (diff)
ceph: stop retrying the request when exceeding 256 times
The type of 'r_attempts' in kernel 'ceph_mds_request' is 'int', while in 'ceph_mds_request_head' the type of 'num_retry' is '__u8'. So in case the request retries exceeding 256 times, the MDS will receive a incorrect retry seq. In this case it's ususally a bug in MDS and continue retrying the request makes no sense. For now let's limit it to 256. In future this could be fixed in ceph code, so avoid using the hardcode here. Signed-off-by: Xiubo Li <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions