percpu_ref: release percpu memory early without PERCPU_REF_ALLOW_REINIT
authorRoman Gushchin <guro@fb.com>
Tue, 7 May 2019 17:01:50 +0000 (10:01 -0700)
committerDennis Zhou <dennis@kernel.org>
Thu, 9 May 2019 17:51:06 +0000 (10:51 -0700)
commit7d9ab9b6adffd9c474c1274acb5f6208f9a09cf3
tree461ee811d60454e5e21fb6f567ec2e2435575a12
parentddde2af747ad79010f14691f381522987fbcb860
percpu_ref: release percpu memory early without PERCPU_REF_ALLOW_REINIT

Release percpu memory after finishing the switch to the atomic mode
if only PERCPU_REF_ALLOW_REINIT isn't set.

Signed-off-by: Roman Gushchin <guro@fb.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
include/linux/percpu-refcount.h
lib/percpu-refcount.c