Re: [PATCH v1 6/7] cxl/region: Drop goto pattern in cxl_dax_region_alloc()
From: Jonathan Cameron
Date: Tue Feb 11 2025 - 12:33:05 EST
On Tue, 11 Feb 2025 15:57:26 +0800
Li Ming <ming.li@xxxxxxxxxxxx> 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.
>
> Signed-off-by: Li Ming <ming.li@xxxxxxxxxxxx>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>