Re: [PATCH v2 6/7] cxl/region: Drop goto pattern in cxl_dax_region_alloc()

From: Alison Schofield
Date: Wed Feb 19 2025 - 12:37:47 EST


On Mon, Feb 17, 2025 at 10:48:27PM +0800, Li Ming wrote:
> In cxl_dax_region_alloc(), there is a goto pattern to release the rwsem
> cxl_region_rwsem when the function returns, the down_read() and up_read
> can be replaced by a guard(rwsem_read) then the goto pattern can be
> removed.
>
> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> Signed-off-by: Li Ming <ming.li@xxxxxxxxxxxx>

Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>

snip