diff options
author | Jann Horn <jannh@google.com> | 2025-01-15 23:26:03 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-01-21 17:07:10 +0300 |
commit | 5719e2823565a304a2afb752d4792c622a693e22 (patch) | |
tree | 4d9c69ab6d63a765bd70f8201d3fccc847e7741a /lib/crypto/mpi/mpiutil.c | |
parent | 95ec54a420b8f445e04a7ca0ea8deb72c51fe1d3 (diff) | |
download | linux-5719e2823565a304a2afb752d4792c622a693e22.tar.xz |
io_uring/rsrc: Simplify buffer cloning by locking both rings
The locking in the buffer cloning code is somewhat complex because it goes
back and forth between locking the source ring and the destination ring.
Make it easier to reason about by locking both rings at the same time.
To avoid ABBA deadlocks, lock the rings in ascending kernel address order,
just like in lock_two_nondirectories().
Signed-off-by: Jann Horn <jannh@google.com>
Link: https://lore.kernel.org/r/20250115-uring-clone-refactor-v2-1-7289ba50776d@google.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions