diff options
author | Li Ming <ming.li@zohomail.com> | 2025-02-21 04:24:52 +0300 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2025-03-15 00:46:32 +0300 |
commit | 9e7b7ab5af69aaa5cd027656529663407da61e6f (patch) | |
tree | a0da1fd8e77c327efc9a15434f6bc84b5174a1f1 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | a81ebe7d19b6fdc6de0159878fbed9945120813e (diff) | |
download | linux-9e7b7ab5af69aaa5cd027656529663407da61e6f.tar.xz |
cxl/region: Drop goto pattern in cxl_dax_region_alloc()
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@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Acked-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Li Ming <ming.li@zohomail.com>
Link: https://patch.msgid.link/20250221012453.126366-7-ming.li@zohomail.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions