]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
objecter: protect linger_op last_error and registered fields 3693/head
authorJosh Durgin <jdurgin@redhat.com>
Wed, 11 Feb 2015 04:04:17 +0000 (20:04 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 11 Feb 2015 04:19:32 +0000 (20:19 -0800)
commit45c388f2209e169da06fb9a946b32d553c77cff6
tree5a69a38ab90d8e2986c8a4fd7fb81ed3e99cfe77
parent69ee5ec7ddd00731a0eedec00fc0559320e25654
objecter: protect linger_op last_error and registered fields

These are read and updated in places where using the session lock or
objecter->rwlock wouldn't make sense, so protect them with watch_lock
instead. last_error was already mostly protected by this lock, it was
just missing in tick().

Fixes: #10831
Backport: giant
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
src/osdc/Objecter.cc