Skip to content

Fix failure of block bitmap allocation on large NVM in failure recovery.#98

Merged
Andiry merged 1 commit intoNVSL:masterfrom
seekstar:fix-failure-of-bitmap-allocation
Mar 28, 2021
Merged

Fix failure of block bitmap allocation on large NVM in failure recovery.#98
Andiry merged 1 commit intoNVSL:masterfrom
seekstar:fix-failure-of-bitmap-allocation

Conversation

@seekstar
Copy link
Copy Markdown
Contributor

Currently, the block bitmaps are allocated by kzalloc. However, the maximum size of space it can allocate is finite(typically 4MiB). So if the size of NVM is big enough(>128GiB), the size of block bitmap will exceed the maximum size of space kzalloc can allocate, which will cause the failure of block bitmap allocation.

This PR fixes it by allocating block bitmaps with kvzalloc.

@Andiry
Copy link
Copy Markdown
Contributor

Andiry commented Mar 28, 2021

Thanks for fixing this!

@Andiry Andiry merged commit 5f54d70 into NVSL:master Mar 28, 2021
@seekstar seekstar deleted the fix-failure-of-bitmap-allocation branch March 28, 2021 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants