Whamcloud - gitweb
LU-81 deadlock of changelog adding vs. changelog cancelling
authorNiu Yawei <niu@whamcloud.com>
Thu, 18 Aug 2011 04:22:19 +0000 (21:22 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 4 Jan 2012 13:12:49 +0000 (08:12 -0500)
commit4ecb94432df9f0f0866538f64b27f006562eae13
treee2e98575b4867a5c9aeb22f6cf94890a4165534f
parent46926d1caf504eba712ac9fcf22b439b91bf08cc
LU-81 deadlock of changelog adding vs. changelog cancelling

This is a workaround for the deadlock of changelog adding vs.
changelog cancelling. Changelog adding always start transaction
before acquiring the catlog lock(lgh_lock), whereas, changelog
cancelling do start transaction after holding the catlog lock.

We start transaction earlier to avoid above deadlock.

Signed-off-by: Niu Yawei <niu@whamcloud.com>
Change-Id: I9647b9a559f68a27dc0d4b4885857d3cf73b5b8e
Reviewed-on: http://review.whamcloud.com/1260
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_device.c
lustre/mds/mds_log.c