aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAlex Williamson <[email protected]>2017-03-19 20:38:40 -0600
committerZhenyu Wang <[email protected]>2017-03-20 15:06:14 +0800
commit93a15b58cfb8a24e666ffca432f19fe65c1cd7d1 (patch)
tree4bd94a8310c4943a62ba45a3a3ef2bd3eb8c6606 /tools/perf/scripts/python/export-to-postgresql.py
parent2958b9013fcbabeeba221161d0712f5259f1e15d (diff)
drm/i915/kvmgt: Hold struct kvm reference
The kvmgt code keeps a pointer to the struct kvm associated with the device, but doesn't actually hold a reference to it. If we do unclean shutdown testing (ie. killing the user process), then we can see the kvm association to the device unset, which causes kvmgt to trigger a device release via a work queue. Naturally we cannot guarantee that the cached struct kvm pointer is still valid at this point without holding a reference. The observed failure in this case is a stuck cpu trying to acquire the spinlock from the invalid reference, but other failure modes are clearly possible. Hold a reference to avoid this. Signed-off-by: Alex Williamson <[email protected]> Cc: [email protected] #v4.10 Cc: Jike Song <[email protected]> Cc: Paolo Bonzini <[email protected]> Cc: Zhenyu Wang <[email protected]> Cc: Zhi Wang <[email protected]> Reviewed-by: Jike Song <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions