diff options
| author | Nicolai Hähnle <[email protected]> | 2016-02-05 15:59:43 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2016-02-10 19:07:31 +0000 |
| commit | a8d81b36267366603771431747438d18f32ae2d5 (patch) | |
| tree | fb6460edb485890a55b6a101751812abcfb0b7c1 /net/unix/af_unix.c | |
| parent | drm/amdgpu: fix s4 resume (diff) | |
| download | kernel-a8d81b36267366603771431747438d18f32ae2d5.tar.gz kernel-a8d81b36267366603771431747438d18f32ae2d5.zip | |
drm/amdgpu: hold reference to fences in amdgpu_sa_bo_new (v2)
An arbitrary amount of time can pass between spin_unlock and
fence_wait_any_timeout, so we need to ensure that nobody frees the
fences from under us.
A stress test (rapidly starting and killing hundreds of glxgears
instances) ran into a deadlock in fence_wait_any_timeout after
about an hour, and this race condition appears to be a plausible
cause.
v2: agd: rebase on upstream
Signed-off-by: Nicolai Hähnle <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Christian König <[email protected]>
Cc: [email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
