Whamcloud - gitweb
LU-7400 lod: register stop callbacks at create 59/17059/8
authorAlex Zhuravlev <alexey.zhuravlev@intel.com>
Fri, 6 Nov 2015 07:20:53 +0000 (10:20 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 2 Dec 2015 03:55:04 +0000 (03:55 +0000)
commit082eabdeaa0c2a0f536accf7028e5ab5061c2c46
tree457a5be84a0c167aab6380989f6ae6cfccd9284e
parent2aea469a3a6e214db485b091e92d8bca84af4f51
LU-7400 lod: register stop callbacks at create

In some cases we stop just created transaction (i.e. it's
empty, not started), but then top_trans_stop() waits
indefinitely for stop callbacks which were supposed to be
register at top_trans_start(). instead register them at
top_trans_create().

Instead of register the commit callback in top_trans_start(),
we should register the commit callback once the top thandle
is added into commit list, because in some error cases,
top_trans_start() might not be called, then the top thandle
will stay in the commit list forever, and also blocking
llog cancellation.

Change-Id: I1ca528e2f8f5e4d9cf6b5dd484653a055e17cc6c
Signed-off-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Signed-off-by: wang di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/17059
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/target/update_trans.c