diff options
author | Li Ming <ming.li@zohomail.com> | 2025-02-21 04:24:50 +0300 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2025-03-15 00:37:54 +0300 |
commit | 16fe6ec4ac3d828b3976bd36e4d99af73f8e43d2 (patch) | |
tree | 5eac37d2156389534cab8243668f22188987062d /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | a58afda8bfd4a113295f0e12c0697c35a69614b2 (diff) | |
download | linux-16fe6ec4ac3d828b3976bd36e4d99af73f8e43d2.tar.xz |
cxl/core: Use guard() to drop the goto pattern of cxl_dpa_free()
cxl_dpa_free() has a goto pattern to call up_write() for cxl_dpa_rwsem,
it can be removed by using a guard() to replace the down_write() and
up_write().
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-5-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