Files
linux-nvgpu/drivers/gpu/nvgpu/gk20a/cde_gk20a.c
Konsta Holtta e22d0082ec gpu: nvgpu: cde: wait for ctx deletion before get
Wait for possible temp context deletion to finish properly before
passing contexts around later, to prevent situations where the context
deleter scheduling would have been completed, but running it would not,
and a new one could have been scheduled again. When finished, schedule
the deleter before freeing the context back to use to prevent races.

Warn in impossible situations when these double deletions would happen.

Bug 200054186
Bug 200052943

Change-Id: I23ca0d1081eea77d0e453b9038adc914909b5f48
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/603439
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
2015-03-18 12:12:16 -07:00

48 KiB