]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: protect deactivate with activate lock 6926/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 18 Dec 2015 23:53:03 +0000 (00:53 +0100)
committerLoic Dachary <ldachary@redhat.com>
Mon, 21 Dec 2015 10:37:37 +0000 (11:37 +0100)
commit6395bf856b4d4511f0758174ef915ebcafbe3777
treecedb615db589b68ff88fe90bf7ab9dddeca640de
parent9dce05a8cdfc564c5162885bbb67a04ad7b95c5a
ceph-disk: protect deactivate with activate lock

When ceph-disk prepares the disk, it triggers udev events and each of
them ceph-disk activate. If systemctl stop ceph-osd@2 happens while
there still are ceph-disk activate in flight, the systemctl stop may be
cancelled by the systemctl enable issued by one of the pending ceph-disk
activate.

This only matters in a test environment where disks are destroyed
shortly after they are activated.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk