[Intel-gfx] [CI] drm/i915: Remove unwanted rcu_read_lock/unlock
Chris Wilson
chris at chris-wilson.co.uk
Wed Nov 6 17:24:16 UTC 2019
From: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>
We don't need rcu read side critical section to call pid_nr(),
remove it.
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura at intel.com>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/i915_gpu_error.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
index e8b67f5e521d..1f2f266f26af 100644
--- a/drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/drivers/gpu/drm/i915/i915_gpu_error.c
@@ -1230,10 +1230,7 @@ static void record_request(const struct i915_request *request,
erq->start = i915_ggtt_offset(request->ring->vma);
erq->head = request->head;
erq->tail = request->tail;
-
- rcu_read_lock();
erq->pid = ctx->pid ? pid_nr(ctx->pid) : 0;
- rcu_read_unlock();
}
static void engine_record_requests(struct intel_engine_cs *engine,
--
2.24.0
More information about the Intel-gfx
mailing list