aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2024-01-05 22:03:58 +0000
committerDavid Howells <[email protected]>2024-01-05 23:13:48 +0000
commit807c6d09cc99cbdf9933edfadcbaa8f0b856848d (patch)
tree4ac3fb1575ab147903339b51fd201f401fc63ccc /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentnetfs: Fix interaction between write-streaming and cachefiles culling (diff)
downloadkernel-807c6d09cc99cbdf9933edfadcbaa8f0b856848d.tar.gz
kernel-807c6d09cc99cbdf9933edfadcbaa8f0b856848d.zip
netfs: Fix the loop that unmarks folios after writing to the cache
In the loop in netfs_rreq_unmark_after_write() that removes the PG_fscache from folios after they've been written to the cache, as soon as we remove the mark from a multipage folio, it can get split - and then we might see a fragment of folio again. Guard against this by advancing the 'unlocked' tracker to the index of the last page in the folio to avoid a double removal of the PG_fscache mark. Reported-by: Marc Dionne <[email protected]> Signed-off-by: David Howells <[email protected]> cc: Matthew Wilcox <[email protected]> cc: [email protected] cc: [email protected] cc: [email protected] cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions