Re: [PATCH 09/20] ublk: split out ublk_user_copy() helper

Ming Lei
2025-12-22T14:58:43Z

On Tue, Dec 16, 2025 at 10:34:43PM -0700, Caleb Sander Mateos wrote:
> ublk_ch_read_iter() and ublk_ch_write_iter() are nearly identical except
> for the iter direction. Split out a helper function ublk_user_copy() to
> reduce the code duplication as these functions are about to get larger.
>
> Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>

Nice cleanup!

Reviewed-by: Ming Lei <ming.lei@redhat.com>

Thanks,
Ming