summaryrefslogtreecommitdiff
path: root/include/Kbuild
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2015-11-09 10:37:53 +0300
committerBen Skeggs <bskeggs@redhat.com>2016-01-11 04:17:40 +0300
commit338840eed18e05209c0e9f20f818964a66fce053 (patch)
treedf761423858cb9a629aedc7bbda0003d4b096633 /include/Kbuild
parent5a9e822f8098e6aa7a8305627ca5dd09d87ef846 (diff)
downloadlinux-338840eed18e05209c0e9f20f818964a66fce053.tar.xz
drm/nouveau/instmem/gk20a: fix race conditions
The LRU list used for recycling CPU mappings was handling concurrency very poorly. For instance, if an instobj was acquired twice before being released once, it would end up into the LRU list even though there is still a client accessing it. This patch fixes this by properly counting how many clients are currently using a given instobj. While at it, we also raise errors when inconsistencies are detected, and factorize some code. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'include/Kbuild')
0 files changed, 0 insertions, 0 deletions