diff options
author | 2017-01-05 16:49:03 +0800 | |
---|---|---|
committer | 2017-01-09 11:10:43 +0800 | |
commit | 440a9b9fae37dfd7e4c7d76db34fada57f9afd92 (patch) | |
tree | 7679b1dd789545fe8ab5c33e68bc0014bc43c3fc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915/gvt: fix use after free for workload (diff) | |
download | wireguard-linux-440a9b9fae37dfd7e4c7d76db34fada57f9afd92.tar.xz wireguard-linux-440a9b9fae37dfd7e4c7d76db34fada57f9afd92.zip |
drm/i915/gvt: dec vgpu->running_workload_num after the workload is really done
The vgpu->running_workload_num is used to determine whether a vgpu has
any workload running or not. So we should make sure the workload is
really done before we dec running_workload_num. Function
complete_current_workload is not the right place to do it, since this
function is still processing the workload. This patch move the dec op
afterward.
v2: move dec op before wake_up(&scheduler->workload_complete_wq) (Min He)
Signed-off-by: Changbin Du <changbin.du@intel.com>
Reviewed-by: Min He <min.he@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions