]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: swap state spinlock for atomic_t 2613/head
authorSage Weil <sage@redhat.com>
Tue, 30 Sep 2014 18:56:30 +0000 (11:56 -0700)
committerSage Weil <sage@redhat.com>
Tue, 30 Sep 2014 18:56:30 +0000 (11:56 -0700)
commit62e2bca8d8c20ff880ecb1e216da14f735fb4944
treee8745c9a36cf338937749ff43f3daa67739df945
parente30969b19eb41c8e02a8113c4e7ea296760d3957
osd: swap state spinlock for atomic_t

We are hitting a strange issue with valgrind and pthread spinlocks. Avoid
the issue by using an atomic_t here (which is simpler anyway).

Avoids: #8822
Backport: firefly
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h