Whamcloud - gitweb
LU-6684 lfsck: set the lfsck notify as interruptable 82/18082/8
authorFan Yong <fan.yong@intel.com>
Tue, 24 Nov 2015 22:47:59 +0000 (06:47 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 2 Feb 2016 04:30:38 +0000 (04:30 +0000)
commit069a9cf551c2e985ea254a1c570b22ed1d72d914
treef46282c329e0bfd4d1a8d2171d7be9386d4c0e97
parent1837368000d34d77df3906d88879a3785581431f
LU-6684 lfsck: set the lfsck notify as interruptable

If the LFSCK engine is notifying the remote LFSCK engine about some
LFSCK event, such as LE_PHASE1_DONE, but if the remote server (MDT
or OST) is offline, then such notification RPC will be blocked until
the remote server is online. At that time, if someone wants to stop
the LFSCK, he/she has to wait.

To avoid such trouble, we will make the LFSCK notification RPC to
be interruptable. Then even if some remote server is offline, the
running LFSCK still can be stopped.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ie9220bc578eb9fe1b1b804a6732fe8ecfba4affb
Reviewed-on: http://review.whamcloud.com/18082
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c
lustre/ptlrpc/client.c