]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: don't schedule a cr if already scheduled
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 19 Oct 2017 21:04:03 +0000 (14:04 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Apr 2018 15:05:39 +0000 (08:05 -0700)
commit2760375f874e856fb1f6898e858af8a094596541
treee0ffdba888b3d0f25e8442abc94dc0766c977429
parent48da099d9db4159b8155d5367c45ff8e8128e916
rgw: don't schedule a cr if already scheduled

This can be triggered when multiple IOs return for the same cr. We
don't want to allow it to be scheduled multiple times, as this
might wake up blocking IOs that shouldn't be woken up. If we try to
block on an IO that we already complete, we won't block anyway.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_coroutine.cc