aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorLi Ming <[email protected]>2025-02-21 01:32:05 +0000
committerDave Jiang <[email protected]>2025-03-14 21:59:34 +0000
commit5ec67596e368cdddddd6770fc2dd2e577e82fbe8 (patch)
tree267c5930e848216456b0796ec5539e51b286d2e9 /net/unix/af_unix.c
parentcxl/region: Drop goto pattern in cxl_dax_region_alloc() (diff)
downloadkernel-5ec67596e368cdddddd6770fc2dd2e577e82fbe8.tar.gz
kernel-5ec67596e368cdddddd6770fc2dd2e577e82fbe8.zip
cxl/region: Drop goto pattern of construct_region()
Some operations need to be protected by the cxl_region_rwsem in construct_region(). Currently, construct_region() uses down_write() and up_write() for the cxl_region_rwsem locking, so there is a goto pattern after down_write() invoked to release cxl_region_rwsem. construct region() can be optimized to remove the goto pattern. The changes are creating a new function called __construct_region() which will include all checking and operations protected by the cxl_region_rwsem, and using guard(rwsem_write) to replace down_write() and up_write() in __construct_region(). Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Reviewed-by: Alison Schofield <[email protected]> Reviewed-by: Dan Williams <[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