drm/vmwgfx: Adapt validation code for reference-free lookups
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 26 Sep 2018 13:59:20 +0000 (15:59 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 28 Sep 2018 06:57:07 +0000 (08:57 +0200)
commit64ad2abfe9a628ce79859d072704bd1ef7682044
tree6d7df075d3d405e394fbebd4878373a15e57c430
parent24dc64c1ba5c3ef0463d59fef6df09336754188d
drm/vmwgfx: Adapt validation code for reference-free lookups

Adapt the validation code so that vmw_validation_add[res|bo] can be called
under an rcu read lock (non-sleeping) and with rcu-only protected resource-
or buffer object pointers.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_validation.c
drivers/gpu/drm/vmwgfx/vmwgfx_validation.h