mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jules Irenge <jbi.octave@gmail.com>
To: christian.koenig@amd.com
Cc: ray.huang@amd.com, airlied@linux.ie, daniel@ffwll.ch,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
	Boqun.Feng@microsoft.com, Andrea.Parri@microsoft.com,
	Jules Irenge <jbi.octave@gmail.com>
Subject: [PATCH] gpu: ttm: add __releases function
Date: Tue, 26 Nov 2019 10:13:19 +0000	[thread overview]
Message-ID: <20191126101319.79476-1-jbi.octave@gmail.com> (raw)

Add releases() function to fix context imbalance.
 Issue detected by sparse tool.
warning: context imbalance in ttm_bo_cleanup_refs - unexpected unlock

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
---
 drivers/gpu/drm/ttm/ttm_bo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 98819462f025..c87481d667a9 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -544,7 +544,7 @@ static void ttm_bo_cleanup_refs_or_queue(struct ttm_buffer_object *bo)
 
 static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo,
 			       bool interruptible, bool no_wait_gpu,
-			       bool unlock_resv)
+			       bool unlock_resv) __releases(&glob->lru_lock)
 {
 	struct ttm_bo_global *glob = bo->bdev->glob;
 	struct dma_resv *resv;
-- 
2.23.0


                 reply	other threads:[~2019-11-26 10:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191126101319.79476-1-jbi.octave@gmail.com \
    --to=jbi.octave@gmail.com \
    --cc=Andrea.Parri@microsoft.com \
    --cc=Boqun.Feng@microsoft.com \
    --cc=airlied@linux.ie \
    --cc=christian.koenig@amd.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ray.huang@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®