]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: only submit deferred if there is any 16269/head
authorSage Weil <sage@redhat.com>
Tue, 11 Jul 2017 19:21:01 +0000 (15:21 -0400)
committerSage Weil <sage@redhat.com>
Tue, 11 Jul 2017 19:21:01 +0000 (15:21 -0400)
commit8cacf28ebbcb535d79e661a08fdcd3376904e09b
treebdb2e148a80633b30dcfd2238f774e5a8283f4c4
parent64f47c89fe4c96c2914369b1b47a0694b35d719c
os/bluestore: only submit deferred if there is any

We drop the lock, so it's possible another thread submits the pending.
(_deferred_submit_unlock assumes osr->deferred_pending != nullptr.)

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc