diff options
author | Du, Changbin | 2016-10-27 05:10:31 +0200 |
---|---|---|
committer | Zhenyu Wang | 2016-10-27 05:20:42 +0200 |
commit | e45d7b7f47a4849a5d3d55a2cf5802a72924d37b (patch) | |
tree | 5a341c6270949ee05150beeff5b53a0ae4990f9a /tools/build/feature | |
parent | drm/i915/gvt: throw error basing on execlist submit result (diff) | |
download | kernel-qcow2-linux-e45d7b7f47a4849a5d3d55a2cf5802a72924d37b.tar.gz kernel-qcow2-linux-e45d7b7f47a4849a5d3d55a2cf5802a72924d37b.tar.xz kernel-qcow2-linux-e45d7b7f47a4849a5d3d55a2cf5802a72924d37b.zip |
drm/i915/gvt: fix nested sleeping issue
We cannot use blocking method mutex_lock inside a wait loop.
Here we invoke pick_next_workload() which needs acquire a
mutex in our "condition" experssion. Then we go into a another
of the going-to-sleep sequence and changing the task state.
This is a dangerous. Let's rewrite the wait sequence to avoid
nested sleeping.
v2: fix do...while loop exit condition (zhenyu)
v3: rebase to gvt-staging branch
Signed-off-by: Du, Changbin <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'tools/build/feature')
0 files changed, 0 insertions, 0 deletions