Whamcloud - gitweb
LU-10321 lfsck: not start lfsck during umount 14/30514/3
authorFan Yong <fan.yong@intel.com>
Wed, 13 Dec 2017 05:50:11 +0000 (13:50 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Fri, 2 Feb 2018 18:11:58 +0000 (18:11 +0000)
commite82d8ad284fd37bbc4863723aa42c927d456fae6
treed2c5ccbf7baa522d7201bcd92df24c944d4f086c
parent147b2b4177f9f8d3c4407cd74bb1b97a5c5d7f53
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.

This is a port to b2_10 of
Lustre-change: https://review.whamcloud.com/#/c/30513/
Lustre-commit: 6263064b369dd4fddbb0dfa9ab49013a0d791629

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I779f862d4195d4289bb9dd96575cd7746ac4b35b
Reviewed-on: https://review.whamcloud.com/30514
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/lfsck/lfsck_internal.h
lustre/lfsck/lfsck_lib.c