aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c
diff options
context:
space:
mode:
authorJens Axboe <[email protected]>2024-04-02 18:26:41 +0000
committerJens Axboe <[email protected]>2024-04-10 22:23:04 +0000
commit40f45fe8eb7efd70e772447dc98bb50c5e323ccb (patch)
tree4377510086182ebff4e8bb2867d90134959968b4 /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c
parenttimerfd: convert to ->read_iter() (diff)
downloadkernel-40f45fe8eb7efd70e772447dc98bb50c5e323ccb.tar.gz
kernel-40f45fe8eb7efd70e772447dc98bb50c5e323ccb.zip
userfaultfd: convert to ->read_iter()
Rather than use the older style ->read() hook, use ->read_iter() so that userfaultfd can support both O_NONBLOCK and IOCB_NOWAIT for non-blocking read attempts. Split the fd setup into two parts, so that userfaultfd can mark the file mode with FMODE_NOWAIT before installing it into the process table. With that, we can also defer grabbing the mm until we know the rest will succeed, as the fd isn't visible before then. Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c')
0 files changed, 0 insertions, 0 deletions