summaryrefslogtreecommitdiff
path: root/lib/fault-inject.c
diff options
context:
space:
mode:
authorMengEn Sun <mengensun@tencent.com>2024-12-06 07:13:47 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-01-13 07:21:00 +0300
commitf49b42d415a32faee6bc08923821f432f64a4e90 (patch)
tree6a9e611872371390fc7c06d6af8b2a45f7a462c5 /lib/fault-inject.c
parentc7bb5cf9fc4e95dff4a3a34b1d14363a6eebdc84 (diff)
downloadlinux-f49b42d415a32faee6bc08923821f432f64a4e90.tar.xz
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: MengEn Sun <mengensun@tencent.com> Reviewed-by: YueHong Wu <yuehongwu@tencent.com> Reviewed-by: Andrew 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: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions