]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: stop forwarding the request when exceeding 256 times
authorXiubo Li <xiubli@redhat.com>
Tue, 29 Mar 2022 04:48:01 +0000 (12:48 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 25 Apr 2022 09:07:47 +0000 (11:07 +0200)
commit5754c912ba7e05d91237f56c4061cf53bfeb1031
tree282ada0f9e39117e8aad5116aecb3695008c7121
parent695e2b1612ed4792e07afa0b7028d2542c6212a0
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
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Luís Henriques <lhenriques@suse.de>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
fs/ceph/mds_client.c