Project

General

Profile

Bug #16230

Updated by Jason Dillaman almost 8 years ago

If the image watch is lost, the exclusive lock will be released and reacquired for safety reasons.    Therefore, it's possible for a race to occur if the journal is closed in the background while rbd-mirror is accessing it w/o holding the necessary locks. 

 One Once specific example is in 'ImageReplayer::shut_down' where 'librbd::Journal::stop_external_replay' is invoked without holding the owner lock. 

 http://teuthology.ovh.sepia.ceph.com/teuthology/jdillaman-2016-06-10_03:05:15-rbd-master---basic-openstack/21667/teuthology.log

Back