Whamcloud - gitweb
LU-2970 lov: wait for active IOs before deleting the object
authorJinshan Xiong <jinshan.xiong@intel.com>
Thu, 21 Mar 2013 19:00:55 +0000 (12:00 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 28 Mar 2013 14:32:43 +0000 (10:32 -0400)
commite6136f178b3cba4b1257851a85fd784792297f86
tree29ea10a2b9d33ff39ab3ccc28f53723cb65eeddd
parent069deb0686030fcbe4a5f844b03423eb7d8cde41
LU-2970 lov: wait for active IOs before deleting the object

lov_layout_operations::llo_delete will be called when the file's
layout is going to change or file is being taken out of cache so we
must make sure there is no active IOs on this object.

For layout change case, it's lov_layout_change()'s responsibility to
make sure there is no active IOs before entering into llo_delete.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: Id56a66548f9f05555e6d112355d2a71da5ab4705
Reviewed-on: http://review.whamcloud.com/5812
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/rw.c
lustre/lov/lov_object.c