Whamcloud - gitweb
LU-1480 lov: avoid subobj's coh_parent race 05/6105/6
authorBobi Jam <bobijam.xu@intel.com>
Sat, 20 Apr 2013 03:56:18 +0000 (11:56 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Sep 2013 14:56:56 +0000 (14:56 +0000)
commitab486a558bde3af6bd75f7fc38bd06042ed5ef67
treecaa2b2a563d330fb4f230a30eecba5f5eaa79e39
parentcca37bc304b1cd8dfebd861072ab33f3abf489fb
LU-1480 lov: avoid subobj's coh_parent race

* during a file lov object initialization, we need protect the access
  and change of its subobj->coh_parent, since it could be another
  layout change race there, which makes an unreferenced lovsub obj in
  the site object hash table.

* dump lovsub objects in the site if the lovsub device reference > 0
  during its finalization phase.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I5d4b79f25a13258cf04f04459f3f1780246b0144
Reviewed-on: http://review.whamcloud.com/6105
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lov/lov_object.c
lustre/lov/lovsub_dev.c