aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorJan Kara <[email protected]>2022-12-12 11:36:33 +0000
committerJens Axboe <[email protected]>2022-12-12 20:08:34 +0000
commita9438b44bc7015b18931e312bbd249a25bb59a65 (patch)
treefb38dd733afe5765d9d2ffa1ed759266faa96558 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentLinux 6.1-rc6 (diff)
downloadkernel-a9438b44bc7015b18931e312bbd249a25bb59a65.tar.gz
kernel-a9438b44bc7015b18931e312bbd249a25bb59a65.zip
writeback: Add asserts for adding freed inode to lists
In the past we had several use-after-free issues with inodes getting added to writeback lists after evict() removed them. These are painful to debug so add some asserts to catch the problem earlier. The only non-obvious change in the commit is that we need to tweak redirty_tail_locked() to avoid triggering assertion in inode_io_list_move_locked(). Signed-off-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions