Whamcloud - gitweb
LU-6427 osd: race between destroy and load LMV 46/14346/17
authorwang di <di.wang@intel.com>
Wed, 1 Apr 2015 19:57:57 +0000 (12:57 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 3 Aug 2015 01:54:02 +0000 (01:54 +0000)
commit11b048aaffd6ced90892c4e6e9b763aa3a81fd6f
tree2b2c2303c65b527d7008480822bdf8a60227d2a0
parent5ebe1b768e7c8397036c94ca43848067269dbf50
LU-6427 osd: race between destroy and load LMV

Do not get LMVEA if the object has been destroyed,
because it needs to iterate the master object, which
is dangerous for ZFS OSD.

Add oo_destroyed flags to avoid accessing destroyed
directory.

Add sanityn.sh 83 to verify accessing destroyed striped
directory will not cause panic.

Signed-off-by: wang di <di.wang@intel.com>
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I1ef6bf197eac0917fd649868235c96af2f64207c
Reviewed-on: http://review.whamcloud.com/14346
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdd/mdd_object.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-zfs/osd_index.c
lustre/osd-zfs/osd_internal.h
lustre/osd-zfs/osd_object.c
lustre/tests/sanityn.sh