]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix inappropriate ENOSPC from avl/hybrid allocator 38474/head
authorIgor Fedotov <ifedotov@suse.com>
Thu, 3 Dec 2020 19:08:43 +0000 (22:08 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Mon, 7 Dec 2020 13:49:29 +0000 (16:49 +0300)
commitc25def8dde775e0cab0da5906c26b0a3c881631a
tree23d50b68ea8688168b511ce83dc5365f6e603d3f
parentb1c1268b5c492c09ac25a8ffa21109a4387acffe
os/bluestore: fix inappropriate ENOSPC from avl/hybrid allocator

Under high fragmentation circumstances (in best-fit mode) these allocators might fail to
return continuous(longer than a single alloc unit) extents. Occurs when
requested size is longer than the maximum available extents and these
extents are unaligned with alloc unit. The latter results in the actual lengths of these extens are shorter
than the requested length and they do not match to the lookup. Which
finally causes no allocation at all.

Fixes: https://tracker.ceph.com/issues/47883
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit f927549d2d54e7464151d234377aa82bb753bca9)
src/os/bluestore/AvlAllocator.cc
src/test/objectstore/Allocator_test.cc