Skip to content

os/bluestore: fix inappropriate ENOSPC from avl/hybrid allocator#38438

Merged
tchaikov merged 1 commit intoceph:masterfrom
ifed01:wip-ifed-fix-avl
Dec 5, 2020
Merged

os/bluestore: fix inappropriate ENOSPC from avl/hybrid allocator#38438
tchaikov merged 1 commit intoceph:masterfrom
ifed01:wip-ifed-fix-avl

Conversation

@ifed01
Copy link
Contributor

@ifed01 ifed01 commented Dec 3, 2020

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

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

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>
@tchaikov tchaikov merged commit f634441 into ceph:master Dec 5, 2020
@ifed01 ifed01 deleted the wip-ifed-fix-avl branch December 5, 2020 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants