]> git-server-git.apps.pok.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>
Wed, 18 May 2022 12:07:04 +0000 (14:07 +0200)
commit0a99e8f055fef5c4f3966903955aee6540498ab3
treeb836fe8df33f01179675d62ce8688981eeade5c5
parent43ddac7bf60413e284c2881f50361485afb8f934
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