Whamcloud - gitweb
LU-10321 lfsck: not start lfsck during umount 13/30513/1
authorFan Yong <fan.yong@intel.com>
Wed, 13 Dec 2017 05:35:39 +0000 (13:35 +0800)
committerFan Yong <fan.yong@intel.com>
Wed, 13 Dec 2017 05:35:39 +0000 (13:35 +0800)
commit6263064b369dd4fddbb0dfa9ab49013a0d791629
treedc4fc6dbbc900584d0c5dd2c985d8658e2ddbab5
parent7817928a62c8a212f5c2b040587042c193bd5c1a
LU-10321 lfsck: not start lfsck during umount

There is race condition bewtween lfsck_start and umount:
the LFSCK may be triggered just after the LFSCK stopped
during umount the target, then nobody will stop the new
started LFSCK, as to the umount may be blocked.

This patch sets flag on the lfsck instance when umount
that will prevent subsequent lfsck_start.

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