[PATCH 2/5] drm/xe: Reinit msg link when processing a message

Matthew Brost matthew.brost at intel.com
Fri Aug 9 19:19:26 UTC 2024


Will help to avoid adding a static message twice.

Signed-off-by: Matthew Brost <matthew.brost at intel.com>
---
 drivers/gpu/drm/xe/xe_gpu_scheduler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_gpu_scheduler.c b/drivers/gpu/drm/xe/xe_gpu_scheduler.c
index eea71c67cf2a..1c703e8423de 100644
--- a/drivers/gpu/drm/xe/xe_gpu_scheduler.c
+++ b/drivers/gpu/drm/xe/xe_gpu_scheduler.c
@@ -31,7 +31,7 @@ xe_sched_get_msg(struct xe_gpu_scheduler *sched)
 	msg = list_first_entry_or_null(&sched->msgs,
 				       struct xe_sched_msg, link);
 	if (msg)
-		list_del(&msg->link);
+		list_del_init(&msg->link);
 	xe_sched_msg_unlock(sched);
 
 	return msg;
-- 
2.34.1



More information about the Intel-xe mailing list