]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: use unix lock instead of lockfile class
authorSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 00:27:49 +0000 (17:27 -0700)
committerSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 00:58:31 +0000 (17:58 -0700)
commit2a4953b697a3464862fd3913336edfd7eede2487
treef9eab22561eca22e0047e9e9e74c472fe5041495
parentcb6bc95a9cb9e272230e080471787b63fa080755
ceph-disk: use unix lock instead of lockfile class

The lockfile class relies on file system trickery to get safe mutual
exclusion.  However, the unix syscalls do this for us.  More
importantly, the unix locks go away when the owning process dies, which
is behavior that we want here.

Fixes: #5387
Backport: cuttlefish
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
src/ceph-disk