Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blob: track last md_page index correctly during resize
During resize, we correctly determine if we have enough md_pages for new extent pages, before proceeding with actually allocating clusters and associated extent pages. But during actual allocation, we were incrementing the lfmd output parameter, which was incorrect. Technically we should increment it any time bs_allocate_cluster() allocated an md_page. But it's also fine to just not increment it at the call site at all - worst case, we just check that bit index again which isn't going to cause a performance problem. Also add a unit test that demonstrated the original problem, and works fine with this patch. Fixes issue spdk#2932. Signed-off-by: Jim Harris <[email protected]> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17150 (master) (cherry picked from commit 7c3c0b6) Change-Id: Iba177a66e880fb99363944ee44d3d060a44a03a4 Signed-off-by: Krzysztof Karas <[email protected]> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17702 Reviewed-by: Ben Walker <[email protected]> Reviewed-by: Jim Harris <[email protected]> Tested-by: SPDK CI Jenkins <[email protected]> Reviewed-by: Konrad Sztyber <[email protected]>
- Loading branch information