Whamcloud - gitweb
LU-11761 fld: let's caller to retry FLD_QUERY 62/34962/10
authorHongchao Zhang <hongchao@whamcloud.com>
Thu, 4 Jul 2019 13:39:24 +0000 (09:39 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Jul 2019 06:21:25 +0000 (06:21 +0000)
commite3f6111dfd1c6f2266d0beef67e5a7514a6965d0
tree732edca2e5f0423778680355b1d716ca2b1ce90d
parent5e6a30cc2f344e38dd11ef3db1eb23c1705d8f32
LU-11761 fld: let's caller to retry FLD_QUERY

In fld_client_rpc(), if the FLD_QUERY request between MDTs fails
with -EWOUDBLOCK because the connection is lost, return -EAGAIN
to notify the caller to retry.

It also reverts the patch https://review.whamcloud.com/12586/, which
was landed on b2_6_90_0-5-g6db07f0 to avoid returning -EAGAIN from
lod_object_init() to confuse lu_object_find_at() (thinks the object
was dying when it encounters -EAGAIN). In current Lustre version,
lu_object_find_at() just returned found object and let's caller to
check whether it's dying.

Fixes: 6db07f095fba ("LU-5871 lod: Do not return EAGAIN in lod_object_init")
Change-Id: Ie83ebfdae2bd50c96a59a065f7f3c3dcfad04e42
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/34962
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/fld/fld_request.c
lustre/include/obd_support.h
lustre/lod/lod_object.c
lustre/tests/recovery-small.sh