Whamcloud - gitweb
LU-10419 lfsck: signal master engine when stop 27/31627/5
authorFan Yong <fan.yong@intel.com>
Fri, 20 Apr 2018 21:53:50 +0000 (05:53 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 14 Jun 2018 03:53:34 +0000 (03:53 +0000)
commit1ece380412efd5dba2a8c345830f0456a4922301
tree500d2cf9560bc62ea99fdea7c71455e9fd6bd898
parent3ddee05e6106d3336081cc2d6d7b681116263829
LU-10419 lfsck: signal master engine when stop

It is possible that during the LFSCK scanning, some server, MDT
or OST, maybe offline. At that time, if the LFSCK needs to talk
with such offline server, related RPC will trigger reconnect to
the offline server, and the LFSCK engine has to wait untill the
offline server become online or someone deactives the server by
force. To avoid being blocked when lfsck_stop() under such case,
the stop logic will send SIGINT signal to LFSCK engines. But we
only do that for the LFSCK assistant engines, forget to do that
for the LFSCK master engine. This patch fixes that.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I5d51ab49524e8ae54f0853e93b94e78913f65e8a
Reviewed-on: https://review.whamcloud.com/31627
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/obd_support.h
lustre/lfsck/lfsck_engine.c
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_striped_dir.c
lustre/tests/sanity-lfsck.sh