aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2025-06-04 16:25:42 +0000
committerJens Axboe <[email protected]>2025-06-04 16:50:14 +0000
commit079afb081c4288e94d5e4223d3eb6306d853c68b (patch)
treee14adc121694246acabc34a591844ce774d5139a /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentio_uring/futex: get rid of struct io_futex addr union (diff)
downloadkernel-079afb081c4288e94d5e4223d3eb6306d853c68b.tar.gz
kernel-079afb081c4288e94d5e4223d3eb6306d853c68b.zip
io_uring/futex: mark wait requests as inflight
Inflight marking is used so that do_exit() -> io_uring_files_cancel() will find requests with files that reference an io_uring instance, so they can get appropriately canceled before the files go away. However, it's also called before the mm goes away. Mark futex/futexv wait requests as being inflight, so that io_uring_files_cancel() will prune them. This ensures that the mm stays alive, which is important as an exiting mm will also free the futex private hash buckets. An io_uring futex request with FUTEX2_PRIVATE set relies on those being alive until the request has completed. A recent commit added these futex private hashes, which get killed when the mm goes away. Fixes: 80367ad01d93 ("futex: Add basic infrastructure for local task local hash") Link: https://lore.kernel.org/io-uring/38053.1749045482@localhost/ Reported-by: Robert Morris <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions