Whamcloud - gitweb
LU-1866 lfsck: enhance otable-based iteration
authorFan Yong <yong.fan@whamcloud.com>
Sat, 12 Jan 2013 11:47:12 +0000 (19:47 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 2 Feb 2013 22:12:50 +0000 (17:12 -0500)
commit6e6357dbf9a14aaea459f460dbe4f93e52c814d4
treec943d8a4f226cd0c0ff6660677f8357ee522b9f1
parent4a88dc81ff314005e428cbfa1c931c71ff03c212
LU-1866 lfsck: enhance otable-based iteration

1) Use ::load() method to unplug OSD layer iteration.

2) Use ::put() method to wakeup the LFSCK main engine
   if it is blocked at low layer for ::next() call.

Test-Parameters: envdefinitions=ENABLE_QUOTA=yes testlist=sanity-scrub
Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I28e5689ad3a4ee96a3f17a64e8d6dca553a86d77
Reviewed-on: http://review.whamcloud.com/4906
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Tested-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
lustre/mdd/mdd_lfsck.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_scrub.c