aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorBob Peterson <[email protected]>2019-04-05 03:41:38 +0000
committerAndreas Gruenbacher <[email protected]>2019-05-07 21:39:14 +0000
commit73118ca8baf78dddd1f9c8ac67c1d80b47d9830e (patch)
tree72c0d2a327c8bace37ce5984f39d971ab5768594 /drivers/gpu/drm/amd/amdgpu
parentgfs2: Fix occasional glock use-after-free (diff)
downloadkernel-73118ca8baf78dddd1f9c8ac67c1d80b47d9830e.tar.gz
kernel-73118ca8baf78dddd1f9c8ac67c1d80b47d9830e.zip
gfs2: Replace gl_revokes with a GLF flag
The gl_revokes value determines how many outstanding revokes a glock has on the superblock revokes list; this is used to avoid unnecessary log flushes. However, gl_revokes is only ever tested for being zero, and it's only decremented in revoke_lo_after_commit, which removes all revokes from the list, so we know that the gl_revoke values of all the glocks on the list will reach zero. Therefore, we can replace gl_revokes with a bit flag. This saves an atomic counter in struct gfs2_glock. Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions