]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/aio: handle short return from io_submit 17601/head
authorSage Weil <sage@redhat.com>
Thu, 7 Sep 2017 20:28:59 +0000 (16:28 -0400)
committerSage Weil <sage@redhat.com>
Fri, 8 Sep 2017 12:17:33 +0000 (08:17 -0400)
commita32f6a2e3a46c1709e5a3e0443d8b45df4bd9c99
treefe6ca06a8bc16f28d98eaabc7c97cb537350514c
parentaccd582d59efa2ba8349e6ad58775e1ca619d821
os/bluestore/aio: handle short return from io_submit

io_submit may return a value less than nr, indicating that only some of
the provided iocbs were queued.  If that happens we should loop, not
return and silently drop those aios on the floor.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit dc17dfd9ff05b5676488c2b1bca53026b2ca6244)
src/os/bluestore/aio.cc