]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't hold data_lock over frontend io 20621/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 27 Feb 2018 18:20:32 +0000 (13:20 -0500)
committerCasey Bodley <cbodley@redhat.com>
Tue, 27 Feb 2018 18:34:17 +0000 (13:34 -0500)
commit786bb87d19679538501ad7f56792e09578cd8f66
tree660c9b6147c87bcff42226b143d094d5e6de82f5
parent39837301d0119fa4ef93524575735649f9a0ebde
rgw: don't hold data_lock over frontend io

get_obj_data::data_lock protects access to the read_list, which the
librados finisher thread appends to on completions

locking isn't needed over calls to d->client_cb->handle_data() in
get_obj_iterate_cb(), because this callback is called synchronously
from the frontend/process_request() thread - no other thread will
be submitting io to the d->client_cb callback

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rados.cc