Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1093278lqe; Sun, 7 Apr 2024 19:36:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCnT8NFnI3zj/R72470aqlLv+KEG1fQcF4VZ4bNvUbSonI/miZrwkk4fj9An/8q0z0ZoCKgu0F476sleKQxZPoP311YKDvF1TKBnA6Iw== X-Google-Smtp-Source: AGHT+IHjzHzflfX2qtVTerJK3qx5D2zdantzjRrxl+HnkVsVI6OQ4Ga8iVc1J0jxWBZgtBB0wmyW X-Received: by 2002:a05:622a:14d:b0:434:4886:fe54 with SMTP id v13-20020a05622a014d00b004344886fe54mr10526081qtw.51.1712543772388; Sun, 07 Apr 2024 19:36:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712543772; cv=pass; d=google.com; s=arc-20160816; b=Kwe0ETK/q2v+nyd4UteFPA7jZ/WyrDqn4OjjtCCWvy1Tx4DqkSqjHgwT3e+22yn/ML M0F0fj4A5EQbKoemMVW1U0Q5UVaui7uGRGdD+22XvqEMr0NPsCWYlKDjm8G6fcTGOMkS CqZu3vw2PnvryU7oXk/eTCrwyEDtXETNFeM4Y8iH0Ah2piToLDmGKeclCzJXARGChr+l W4/tFziPtfpk0U/yXJHv1D0gBmi9itMc4smF8CTwEvApWQumTFr4Slo/uCeYAo7sY1de qpsmP4Bh2Q4syBS4et0IpGnB+apjWUpDJahpVsL7tBd1Q6Gp5gAp/iycebWMn3oytf37 zXSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=vPKyhuBswSLMcWjuIQwilDEd+Az3YtYSaPyId04YfEE=; fh=Net1+9BszATlPaFQGOPI6BEX7pzoM/ueWJyYGS7C45g=; b=oAe30HlQ5A8o8BfJNcmL213IRT0WHy71uvNeVfidWyADp2/C/OoUJD1M6cXRgBC2SG L3xaliBFDMy4D1C3et0WoLnE6kc6tC49I7dK2aKj0xVbYsUBq4wbls8D7QPeXGeQfP0Z E2AquG2AYQ7TpH1OWYn77CSV5LRXXwN0xqdnDw4m5uwqpmkLWvkYn6uC4g/a6m6la6oJ ny3yqJBzSkE5bglSQVq71t9+6PkciK6imiF+yknQPJl/lM58OToCH/TzQxSzVhAeYT3G WnVFR+l/jyEYUgU+UFWb5N5IeM+5wL3+tc7YjsE84P8WTULritTtQCREmHGG4LfPTkGK WAXQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nBxkMY56; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134724-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a19-20020a05622a065300b00430eb084557si7211006qtb.807.2024.04.07.19.36.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 19:36:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nBxkMY56; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134724-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134724-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 9CB101C210F3 for ; Mon, 8 Apr 2024 02:36:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FAA31860; Mon, 8 Apr 2024 02:36:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nBxkMY56" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DAF94C8A; Mon, 8 Apr 2024 02:36:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712543762; cv=none; b=daO46pb5Bnze6GHMkkh4V7okh2yUAQOebl16U+tXGOh3/yAC7w0Niu/moMoKXsLAibJplmG5POTQuUy0+4Km2uis292X2QCpLGerLELRcycGoNUUu4ujDqvB5OKJ8JUzFl6qW2FEebIh9DnUypARq5WrSRwnvKXZ1x8ROZegUp0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712543762; c=relaxed/simple; bh=vPKyhuBswSLMcWjuIQwilDEd+Az3YtYSaPyId04YfEE=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=h5CQuuLVP+yLP99/ezNxGb2gdsuPVAKYXjwTzK45TRkwfpIbsvVD2ZFrBjobEnFWhpy88CG9XZnEt3ud2SR//LmuzWHfW6SRLpRuyi15NhR74m91mG6AYoEppGgm6yyrm0fKs4/KRklF/mZY5bkiyvGRIrQx9bQAumve/P32Uz4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nBxkMY56; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDF8AC433C7; Mon, 8 Apr 2024 02:36:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712543762; bh=vPKyhuBswSLMcWjuIQwilDEd+Az3YtYSaPyId04YfEE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=nBxkMY56Iy+gTlh1T98M4KTbfCUwyqamxEHqeqPu+i5O7z1V4MJ/ZPSsrXVbBxKAZ UzzKOH9lbfqom1tYIbbdtJbJuN72IqWEUaS9gs4Rn/DfFgN01hYjVpEzkw4YYeVeCT zlGgpBA9F1aKionVlbpznA5EybBSeSeDzBx4Sxg9/8gCRtmrU1GbKU9nHbvV5dy73Z 9GS1qam4q8ziPgGk7LiKkQzgqr86bS1UkS8qxOJDqpxWILrlGgPdGWjCED12nM+cbF 9U7M/4aKJPDu48FIAa+3tw4hpyRgme/PEasHGjxI8dukhXd9cq/I6YYOvZ5n1Qxtoh oBskEjL5F6wpw== Message-ID: <98005e3174d43b96e774458b37fd515f.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240325184204.745706-3-sboyd@kernel.org> References: <20240325184204.745706-1-sboyd@kernel.org> <20240325184204.745706-3-sboyd@kernel.org> Subject: Re: [PATCH v2 2/5] clk: Don't hold prepare_lock when calling kref_put() From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, patches@lists.linux.dev, linux-arm-msm@vger.kernel.org, Douglas Anderson To: Michael Turquette , Stephen Boyd Date: Sun, 07 Apr 2024 19:35:59 -0700 User-Agent: alot/0.10 Quoting Stephen Boyd (2024-03-25 11:41:56) > We don't need to hold the prepare_lock when dropping a ref on a struct > clk_core. The release function is only freeing memory and any code with > a pointer reference has already unlinked anything pointing to the > clk_core. This reduces the holding area of the prepare_lock a bit. >=20 > Note that we also don't call free_clk() with the prepare_lock held. > There isn't any reason to do that. >=20 > Reviewed-by: Douglas Anderson > Signed-off-by: Stephen Boyd > --- Applied to clk-fixes