Skip to content
Snippets Groups Projects
Commit f49b42d4 authored by MengEn Sun's avatar MengEn Sun Committed by Andrew Morton
Browse files

ucounts: move kfree() out of critical zone protected by ucounts_lock

Although kfree is a non-sleep function, it is possible to enter a long
chain of calls probabilistically, so it looks better to move kfree from
alloc_ucounts() out of the critical zone of ucounts_lock.

Link: https://lkml.kernel.org/r/1733458427-11794-1-git-send-email-mengensun@tencent.com


Signed-off-by: default avatarMengEn Sun <mengensun@tencent.com>
Reviewed-by: default avatarYueHong Wu <yuehongwu@tencent.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Andrei Vagin <avagin@google.com>
Cc: Joel Granados <joel.granados@kernel.org>
Cc: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent c7bb5cf9
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment