Whamcloud - gitweb
LU-4767 lfsck: sub-task thread should not change lc_link 61/9661/2
authorFan Yong <fan.yong@intel.com>
Fri, 28 Feb 2014 20:35:09 +0000 (04:35 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 21 Mar 2014 13:58:22 +0000 (13:58 +0000)
commit0045c0126beac0bcac514caa5ef47a9768c2ef85
tree48aa40fc0bf55b0608fc63c25becc48ae8ff3443
parent8a1e06a0ee375f5452a42466c9ac3355db383f90
LU-4767 lfsck: sub-task thread should not change lc_link

The lfsck sub-task thread (for double scan) should not change the
"lfsck_component:lc_link" which may cause the master lfsck engine
thread to access some unexpected RAM space by race.

LFSCK should not return -ENODEV to avoid to misguide ptlrpc.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: Ifb80eaf7c1c4ba9bf7fbd5213e9eae09efed7e28
Reviewed-on: http://review.whamcloud.com/9661
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@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/lfsck/lfsck_layout.c
lustre/lfsck/lfsck_lib.c
lustre/lfsck/lfsck_namespace.c