Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/client: bo->client does not need bos_lock
@ 2025-02-05  5:10 Tejas Upadhyay
  2025-02-05  5:34 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Tejas Upadhyay @ 2025-02-05  5:10 UTC (permalink / raw)
  To: intel-xe; +Cc: himal.prasad.ghimiray

bos_lock is to protect list of bos used by client, it is
not required to protect bo->client so bring it outside of
bos_lock.

Fixes: b27970f3e11c ("drm/xe: Add tracking support for bos per client")
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
---
 drivers/gpu/drm/xe/xe_drm_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_drm_client.c b/drivers/gpu/drm/xe/xe_drm_client.c
index 63f30b6df70b..2d4874d2b922 100644
--- a/drivers/gpu/drm/xe/xe_drm_client.c
+++ b/drivers/gpu/drm/xe/xe_drm_client.c
@@ -135,8 +135,8 @@ void xe_drm_client_add_bo(struct xe_drm_client *client,
 	XE_WARN_ON(bo->client);
 	XE_WARN_ON(!list_empty(&bo->client_link));
 
-	spin_lock(&client->bos_lock);
 	bo->client = xe_drm_client_get(client);
+	spin_lock(&client->bos_lock);
 	list_add_tail(&bo->client_link, &client->bos_list);
 	spin_unlock(&client->bos_lock);
 }
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-02-10 13:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-05  5:10 [PATCH] drm/xe/client: bo->client does not need bos_lock Tejas Upadhyay
2025-02-05  5:34 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-05  5:35 ` ✓ CI.checkpatch: " Patchwork
2025-02-05  5:36 ` ✓ CI.KUnit: " Patchwork
2025-02-05  5:52 ` ✓ CI.Build: " Patchwork
2025-02-05  5:54 ` ✓ CI.Hooks: " Patchwork
2025-02-05  5:56 ` ✓ CI.checksparse: " Patchwork
2025-02-05  6:15 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-05 11:50 ` ✗ Xe.CI.Full: failure " Patchwork
2025-02-07  5:44 ` [PATCH] " Ghimiray, Himal Prasad
2025-02-10 13:12 ` Nirmoy Das

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox