Whamcloud - gitweb
LU-10268 lfsck: postpone lfsck start until initialized 59/30259/4
authorFan Yong <fan.yong@intel.com>
Thu, 7 Dec 2017 07:29:35 +0000 (15:29 +0800)
committerFan Yong <fan.yong@intel.com>
Thu, 7 Dec 2017 07:29:35 +0000 (15:29 +0800)
commit6ec4b7d3fb7351f699569e1a8f5ad2cfa7c78df9
tree0dc1874ebf4c2d472eabc383fd9a9491aa41b3e8
parent18ebd8cbe9dabe0f8c2da36fe6d146d977b500ae
LU-10268 lfsck: postpone lfsck start until initialized

Sometimes, the LFSCK start request may comes (from remote server)
before local target initialized. If we start the LFSCK right away
on current server, the LFSCK engine may access NULL pointer, such
as lookup FID with NULL 'ss_server_fld'.

To avoid such trouble, start LFSCK logic will return -EINPROGRESS
to the request sponsor. It is the sponsor duty to retry the start
request some time later.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: If7bc44e025b5f3c4f977b3a35e3784ada548a2df
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_lib.c