From patchwork Thu Mar 16 07:26:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 13177076 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A7F78C6FD1F for ; Thu, 16 Mar 2023 07:26:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A076E10EC39; Thu, 16 Mar 2023 07:26:52 +0000 (UTC) Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7521510EC39 for ; Thu, 16 Mar 2023 07:26:50 +0000 (UTC) Received: by mail-ed1-x530.google.com with SMTP id ek18so3837891edb.6 for ; Thu, 16 Mar 2023 00:26:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678951609; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iMaOaoaCseTs6xSzJqi98DY/IK7rMn34nGgFk91qr4g=; b=DQVyVlaBK/c/HeuiYiTMnBmyafhcxWbXEyi2m12WQy4QIBFre1g9krSeD7W6Jac2Ez NEiq+QVP4sSaS0ZyNCdfU5Ot9FkvU/oBz1xSOZB4E3poAxO2iYe9f//ntzJrdXgPgDgT PmjoFKLnNSia4w5+f0D22obG1cxnGeC8onfNnHJZ/YdJNm+ZJaGqA2f6lzJnZb5Za5CO pSx9LmovIt3spalg9gfYf2TpGFy5ZbGh3PAO2yKk5rpoABUfhTzjlOODMSC18xoJbcHw NnClEfAGfNc0L0PYroKkNCe3o67juNpK3Hsl9x0kxu8KPZz1eZotiMIHmoH2gyJVS0Jx LLTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678951609; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iMaOaoaCseTs6xSzJqi98DY/IK7rMn34nGgFk91qr4g=; b=zrz46sysvnniLpkqzIQ4W/A3+N11zsuNmpUljTl8RQZTaFLkWB0qg+E/rkhLjZqsnt u7mYyQZMCXPwSckI2mGYwErOEHaIEVpIAfqCJlL/fQAiB46nt0unXAwNhlFMBzfFfunO PlL+zILxqkrlUNCKzKN4pQWcEoPK/A1iQv7+HuOXDbbRn2YR6ZtgWKhGKjvhZ8Kvkpqz ISAdRG8d5AHXY8dbdAGkCJVOusWK+gpTpFJeb8qsfJCUNWwHJ6SKtrh5hR45gKgpFtt+ M0OQFTF7riVoD8zNVstqYyIiAut71ssAQ+ozBY9lsF9mkMHikOCw7UNBmv9pXuo3ZVIY /EjA== X-Gm-Message-State: AO0yUKWEeIq/jjrFH3xyRmY8vdGMO023AAfSw7s8odDkQ2CsVXbq2SFa yQUvOrYq3xHrlSDRp+qsI/YC97EsncM= X-Google-Smtp-Source: AK7set9rEsR/mvGeGrwV8Fu5aZ3mfdGCB9pAdgW2KVhvQc/6NVquKOV14sH9SV76JwC/V+KbNxXdKg== X-Received: by 2002:a17:906:26d3:b0:8de:502e:2061 with SMTP id u19-20020a17090626d300b008de502e2061mr8280893ejc.3.1678951608879; Thu, 16 Mar 2023 00:26:48 -0700 (PDT) Received: from able.fritz.box (p5b0ea2e7.dip0.t-ipconnect.de. [91.14.162.231]) by smtp.gmail.com with ESMTPSA id qw12-20020a1709066a0c00b008d606b1bbb1sm3481408ejc.9.2023.03.16.00.26.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Mar 2023 00:26:48 -0700 (PDT) From: " =?utf-8?q?Christian_K=C3=B6nig?= " X-Google-Original-From: =?utf-8?q?Christian_K=C3=B6nig?= To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/ttm: drop extra ttm_bo_put in ttm_bo_cleanup_refs Date: Thu, 16 Mar 2023 08:26:47 +0100 Message-Id: <20230316072647.406707-1-christian.koenig@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: matthew.william.auld@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" That was accidentially left over when we switched to the delayed delete worker. Suggested-by: Matthew Auld Signed-off-by: Christian König Fixes: ("9bff18d13473") drm/ttm: use per BO cleanup workers Reported-by: Steven Rostedt (Google) Tested-by: Steven Rostedt (Google) Reviewed-by: Matthew Auld --- drivers/gpu/drm/ttm/ttm_bo.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 459f1b4440da..6314653e91f7 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -294,8 +294,6 @@ static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo, if (unlock_resv) dma_resv_unlock(bo->base.resv); - ttm_bo_put(bo); - return 0; }