Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
engines/io_uring_cmd: allocate enough ranges for async trims
We round up the iodepth to the next highest power of 2. So io_u->index can be greater than the iodepth specified by the user. Make sure we allocate enough of the buffers used to store the ranges for async trim commands when the iodepth specified by the user is not a power of 2. Fixes: 4885a6e ("engines/io_uring_cmd: make trims async") Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
- Loading branch information