diff options
author | Stephen Boyd <sboyd@kernel.org> | 2024-03-25 21:41:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-17 13:02:19 +0300 |
commit | 427ede2813903efe20b48db932a28e4b5e9b04b9 (patch) | |
tree | 1760a1502524e25bf50c374b540e5ed78f0f3494 /fs/nls | |
parent | ac259d3fa3e5309e62cb07212bb51090b7c7e6ff (diff) | |
download | linux-427ede2813903efe20b48db932a28e4b5e9b04b9.tar.xz |
clk: Don't hold prepare_lock when calling kref_put()
[ Upstream commit 6f63af7511e7058f3fa4ad5b8102210741c9f947 ]
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.
Note that we also don't call free_clk() with the prepare_lock held.
There isn't any reason to do that.
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20240325184204.745706-3-sboyd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/nls')
0 files changed, 0 insertions, 0 deletions