Whamcloud - gitweb
LU-9040 scrub: detect dead loop scanning 51/26751/10
authorFan Yong <fan.yong@intel.com>
Tue, 2 May 2017 20:10:33 +0000 (04:10 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 May 2017 03:45:41 +0000 (03:45 +0000)
commitad75291c70e67acb6fd607e373be045e9d16d3fc
treed649e82b861a19a245ef2a5a73a184d5dca3f80e
parent6746484df44e456ca3df47708e7d1bc14e4404e8
LU-9040 scrub: detect dead loop scanning

It is found that the OI scrub may fall into dead loop scanning
for some unknown reason. This patch checks the scanning cursor
to make sure it will not scan the same object repeatedly.

It also fixes a logic error about 'noscrub' handling, that may
cause the OI scrub to fall into dead loop scanning when the OI
scrub resumes from former crashed partial scanning.

Test-Parameters: mdtfilesystemtype=ldiskfs ostfilesystemtype=ldiskfs mdscount=2 mdtcount=4 testlist=sanity-scrub,sanity-scrub,sanity-scrub
Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ia1f63e8a2d675e9fa4567fa329905ac769b83a74
Reviewed-on: https://review.whamcloud.com/26751
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_scrub.c