]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
objecter: remove dead race handling code
authorJosh Durgin <jdurgin@redhat.com>
Tue, 10 Feb 2015 23:42:24 +0000 (15:42 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 10 Feb 2015 23:42:26 +0000 (15:42 -0800)
commita60d5fab0bcc89496efbfb8641ab40d9426ff86e
tree9c84c46e9090bf5c4f78880e8b0de94cff0e5fef
parent1b2da9b949e929724c3b729e82bbda0cd3b4023f
objecter: remove dead race handling code

The only caller of _get_osd_session() holds rwlock for write, so
_get_session() cannot race. The only caller of _get_session() which
may possibly race is _op_submit(), which handles the race more simply
inline.

Call _get_session() inline in place of _get_osd_session(), and remove
the unused functions _get_osd_session() and
_promote_lock_check_race().

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/osdc/Objecter.cc
src/osdc/Objecter.h