From patchwork Thu May 7 15:07:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 11534227 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C3955139A for ; Thu, 7 May 2020 15:11:02 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A1F912073A for ; Thu, 7 May 2020 15:11:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="H7Rk0o6C" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A1F912073A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A28786E9F8; Thu, 7 May 2020 15:11:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id C827F6E9F8 for ; Thu, 7 May 2020 15:10:59 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id l18so6827123wrn.6 for ; Thu, 07 May 2020 08:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UUABl2wVRatkO4EE0YHkCwHW5aJAIn1l4xu9QGB+vNM=; b=H7Rk0o6Cl38kBoDsjrUorBXviUwd9VODqmJR/Uz+tBmHZXSL9sMth1eCNS7BY2g5pb z5yvy4aZ//7bJsPBL/n3lA7PC10igt8IQPCEgrndD28dzkQjR8TLHe8NnF33oM4xVjc5 34IBwl3+byMAUWuzyj13A2VLWbXZ9hfkykOman9nGkQQIGNNLAAK1KBGdY9CggG6PqmO 8I9ddnAHGGStkxKiE1LYZvl/Y2w6qhLlqnUTmkkTwF++a64nrfVhecjlf2DXaVezqrxC 1TVlEmYg1YQocDTDp16WV3dpkWjYf0VJthNG9eiy1Dq1rf8wfGkOPUSoHdR/Cm7/7nX1 sw8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UUABl2wVRatkO4EE0YHkCwHW5aJAIn1l4xu9QGB+vNM=; b=nYCgKdASeLXdWgwKA0SyS0F75W7nupINJ5qT0i8UIFGxNz19VY+bTm1MFYbPiClyPE hqT5yNijOykynKay8qiUbsScPUKyiO8QmKfRuE1FwUyf1dMojpL2RJFFVCQ4NC9MzU1p BxL4DxhFLKunx3ZFn9LjrYK6vydPN6TXWBg93Az/j0OqQFr20f6gJBBFDrpc6hDTgyOC FsJb1q8honS2bk040tqJpmYC0BbziwnmOHKjs4EOXYwhZ1Yuy+2GLDpYQxWcQBpT3CgZ 7wT+y4ne+am0DPcm6e6uDW7RhF9MpinPrXMlG5Zy8hiXkK6dA4I7RtIpT39U+yfNoJQK /30A== X-Gm-Message-State: AGi0PubzEdZgikvB1QNjfdsetfJNIsyLoNPgSPRn5DyKGClVmF3tVRoL cIgIS3cImSBZS1xTYe4CdZ4Ou3uf X-Google-Smtp-Source: APiQypKooTvQvYWO57Cqf5CDL99mSvxYzWbjkfQrGKuMathDMjVS9xcWpF4YAAbM1Mnj06DYqxi5Xw== X-Received: by 2002:a5d:4e0a:: with SMTP id p10mr15422716wrt.215.1588864257866; Thu, 07 May 2020 08:10:57 -0700 (PDT) Received: from arch-x1c3.cbg.collabora.co.uk ([2a00:5f00:102:0:9665:9cff:feee:aa4d]) by smtp.gmail.com with ESMTPSA id b66sm8704247wmh.12.2020.05.07.08.10.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 08:10:56 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 05/36] drm/doc: drop struct_mutex refernce for drm_gem_object_free Date: Thu, 7 May 2020 16:07:51 +0100 Message-Id: <20200507150822.114464-6-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200507150822.114464-1-emil.l.velikov@gmail.com> References: <20200507150822.114464-1-emil.l.velikov@gmail.com> 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: emil.l.velikov@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Emil Velikov The comment that struct_mutex must be held is misleading. It is only required when .gem_free_object() is used. Since that one is going with the next patches, drop the reference. Signed-off-by: Emil Velikov Reviewed-by: Daniel Vetter --- drivers/gpu/drm/drm_gem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index 918d1ba25f63..12fa121d0966 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -965,7 +965,6 @@ EXPORT_SYMBOL(drm_gem_object_release); * @kref: kref of the object to free * * Called after the last reference to the object has been lost. - * Must be called holding &drm_device.struct_mutex. * * Frees the object */