diff options
| author | Li Ming <[email protected]> | 2025-02-21 01:24:52 +0000 |
|---|---|---|
| committer | Dave Jiang <[email protected]> | 2025-03-14 21:46:32 +0000 |
| commit | 9e7b7ab5af69aaa5cd027656529663407da61e6f (patch) | |
| tree | a0da1fd8e77c327efc9a15434f6bc84b5174a1f1 /net/unix/af_unix.c | |
| parent | cxl/core: Use guard() to drop goto pattern of cxl_dpa_alloc() (diff) | |
| download | kernel-9e7b7ab5af69aaa5cd027656529663407da61e6f.tar.gz kernel-9e7b7ab5af69aaa5cd027656529663407da61e6f.zip | |
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 <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Alison Schofield <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Acked-by: Davidlohr Bueso <[email protected]>
Signed-off-by: Li Ming <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
