Whamcloud - gitweb
LU-9488 scrub: reset noslot for full speed scrub 28/27228/3
authorFan Yong <fan.yong@intel.com>
Thu, 25 May 2017 19:45:49 +0000 (03:45 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 10 Jun 2017 02:49:03 +0000 (02:49 +0000)
commite2ad44de38a4ef42b975e71c01bbfce0ef7dd827
tree92388c710d3f9c38cfcf2c52a1d643a2b3c49474
parent2272a301f5e365c0ca02b5c939934c1051d910d3
LU-9488 scrub: reset noslot for full speed scrub

If there are too much inconsistect OI mappings detected,
then OI scrub will run under full speed mode for fixing
OI inconsistencies as fast as possible. Under such case,
the @noslot variable should be reset to avoid misguiding
the osd_scrub_next() to return SCRUB_NEXT_WAIT by wrong.

This patch also dumps more information for oi_scrub proc
output, those are helpful to understand OI scurb status.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I0f10d5ff703bbe5460eb77703b67fb066ad4d58b
Reviewed-on: https://review.whamcloud.com/27228
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_scrub.c
lustre/osd-ldiskfs/osd_scrub.h