On Thu, Dec 5, 2024 at 7:42 PM Ming-Hung Tsai <mt...@redhat.com> wrote:
>
> The cached block pointer in dm_array_cursor might be NULL if it reaches
> an unreadable array block, or the array is empty. Therefore,
> dm_array_cursor_end() should call dm_btree_cursor_end() unconditionally,
> to prevent leaving unreleased btree blocks.
>

The patch can be verified using the "array_cursor/iterate/empty" test
in dm-unit:

dm-unit run /pdata/array_cursor/iterate/empty --kernel-dir <KERNEL_DIR>


Reply via email to