Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 889e009b authored by Dhaval Patel's avatar Dhaval Patel
Browse files

drm/msm/sde: release the fence through kfree instead of kfree_rcu



The kfree_rcu free is not required after optimization in fence
driver with commit fd277cec ("drm/msm/sde: avoid spinlock
recursion in sde fence"). The sde fence can be released
immediately because it does not hold any refcount to any
of fence object.

Change-Id: If1df4ed3519a3f7fd8329433ce5c1574572cd59c
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 5f2b7052
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -156,7 +156,7 @@ static void sde_fence_release(struct fence *fence)
	/* keep kput outside spin_lock because it may release ctx */
	if (release_kref)
		kref_put(&ctx->kref, sde_fence_destroy);
	kfree_rcu(f, base.rcu);
	kfree(f);
}

static void sde_fence_value_str(struct fence *fence,