]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/newstore: fix _txc_aio_submit
authorSage Weil <sage@redhat.com>
Fri, 24 Apr 2015 20:41:35 +0000 (13:41 -0700)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:40 +0000 (13:39 -0400)
commit4eca15a950794bbff24e293d708b36e994c17280
tree043fd22ed398db07c96f6adec0eeb0e01689ac4f
parent41886c5420934dea85121c497bef370cfd290fc2
os/newstore: fix _txc_aio_submit

The aios may complete before _txc_aio_submit completes.  In fact, the aio
may complete, commit to the kv store, and then queue more wal aio's before
we finish the loop.  Move aios to a separate list to ensure we only submit
them once and do not right another CPU adjusting the list.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/newstore/NewStore.cc
src/os/newstore/NewStore.h