Commit 1980b1b
ceph: stop forwarding the request when exceeding 256 times
The type of 'num_fwd' in ceph 'MClientRequestForward' is 'int32_t',
while in 'ceph_mds_request_head' the type is '__u8'. So in case
the request bounces between MDSes exceeding 256 times, the client
will get stuck.
In this case it's ususally a bug in MDS and continue bouncing the
request makes no sense.
URL: https://tracker.ceph.com/issues/55130
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Luís Henriques <lhenriques@suse.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent 6c1dc50 commit 1980b1b
1 file changed
Lines changed: 34 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3265 | 3265 | | |
3266 | 3266 | | |
3267 | 3267 | | |
| 3268 | + | |
3268 | 3269 | | |
3269 | 3270 | | |
3270 | 3271 | | |
| |||
3273 | 3274 | | |
3274 | 3275 | | |
3275 | 3276 | | |
| 3277 | + | |
3276 | 3278 | | |
3277 | | - | |
| 3279 | + | |
3278 | 3280 | | |
3279 | 3281 | | |
3280 | 3282 | | |
3281 | 3283 | | |
3282 | 3284 | | |
3283 | 3285 | | |
3284 | | - | |
3285 | | - | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
3286 | 3312 | | |
3287 | 3313 | | |
3288 | 3314 | | |
| |||
3294 | 3320 | | |
3295 | 3321 | | |
3296 | 3322 | | |
3297 | | - | |
3298 | | - | |
3299 | 3323 | | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
| 3328 | + | |
3300 | 3329 | | |
3301 | 3330 | | |
3302 | 3331 | | |
| |||
0 commit comments