diff options
| author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2020-03-03 13:54:12 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-18 07:17:56 +0100 |
| commit | a9fef78caac071b4dbc116a1f404b5b9298088fb (patch) | |
| tree | d8fe6b352897f08aa2f6a9de0f7e164f010ef988 /include/linux/devpts_fs.h | |
| parent | f5ace0987a69088049c53312ec894258ae8fcaa5 (diff) | |
drm/i915/gvt: Fix unnecessary schedule timer when no vGPU exits
commit 04d6067f1f19e70a418f92fa3170cf7fe53b7fdf upstream.
From commit f25a49ab8ab9 ("drm/i915/gvt: Use vgpu_lock to protect per
vgpu access") the vgpu idr destroy is moved later than vgpu resource
destroy, then it would fail to stop timer for schedule policy clean
which to check vgpu idr for any left vGPU. So this trys to destroy
vgpu idr earlier.
Cc: Colin Xu <colin.xu@intel.com>
Fixes: f25a49ab8ab9 ("drm/i915/gvt: Use vgpu_lock to protect per vgpu access")
Acked-by: Colin Xu <colin.xu@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200229055445.31481-1-zhenyuw@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/devpts_fs.h')
0 files changed, 0 insertions, 0 deletions
