]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix inappropriate ENOSPC from avl/hybrid allocator 38438/head
authorIgor Fedotov <ifedotov@suse.com>
Thu, 3 Dec 2020 19:08:43 +0000 (22:08 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Fri, 4 Dec 2020 12:10:49 +0000 (15:10 +0300)
commitf927549d2d54e7464151d234377aa82bb753bca9
treeb67c59b17dc42906a251b7b55e8b5d4f300a942a
parentde870cac81b58a8060c17f44014bad999656b79f
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>
src/os/bluestore/AvlAllocator.cc
src/test/objectstore/Allocator_test.cc