summaryrefslogtreecommitdiff
path: root/net/dsa
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-01-10 21:06:00 +0300
committerAlex Deucher <alexander.deucher@amd.com>2017-01-27 19:13:28 +0300
commit36ea83d1512008ab6631c54971e8de8cf2f0a7b4 (patch)
tree2a69aafab3903216dbb6036de0bde7a525f23e65 /net/dsa
parent54170226a6c9a2122620a3c5c432a76e84026794 (diff)
downloadlinux-36ea83d1512008ab6631c54971e8de8cf2f0a7b4.tar.xz
drm/amd/amdgpu: lock reservation object while creating shadow bo
ttm_bo_init checks that the reservation object is locked. This is the caller's responsibility when resv != NULL. Otherwise, the inline reservation object of the newly allocated buffer is used and must explicitly be locked. Uninterruptible w/w locks without an acquire context are always successful. v2: use ww_mutex_lock Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> (v1) Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions