Whamcloud - gitweb
LU-1055 remove improper assert in osd_declare_object_destroy
authorNiu Yawei <niu@whamcloud.com>
Fri, 3 Feb 2012 07:44:24 +0000 (23:44 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 14 Feb 2012 16:55:57 +0000 (11:55 -0500)
commit0117cbc7b085404af72978b0361b33966ac379cb
treea3e2460419f4010516df1b90c3b537c8d30b8e6a
parent6bc2c5d8aff4fc1f8dbc8aa19b86f6cf44b78419
LU-1055 remove improper assert in osd_declare_object_destroy

After recovery, orphan cleanup could race with the client unlink on
close, so the LASSERT on lu_object_is_dying() should be moved from
declare stage into the real destroy function.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: Ibc4ad0613d907ab98b653d5a64ce54e1f018dcb2
Reviewed-on: http://review.whamcloud.com/2083
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osd-ldiskfs/osd_handler.c