aboutsummaryrefslogtreecommitdiff
path: root/lib/percpu-refcount.c
diff options
context:
space:
mode:
authorGravatar Roman Gushchin <guro@fb.com> 2019-05-07 10:01:49 -0700
committerGravatar Dennis Zhou <dennis@kernel.org> 2019-05-09 10:50:59 -0700
commitddde2af747ad79010f14691f381522987fbcb860 (patch)
tree6e2b6287133d7ae7f2a49ba3f1a4dc014933806c /lib/percpu-refcount.c
parentio_uring: initialize percpu refcounters using PERCU_REF_ALLOW_REINIT (diff)
downloadlinux-ddde2af747ad79010f14691f381522987fbcb860.tar.gz
linux-ddde2af747ad79010f14691f381522987fbcb860.tar.bz2
linux-ddde2af747ad79010f14691f381522987fbcb860.zip
md: initialize percpu refcounters using PERCU_REF_ALLOW_REINIT
Percpu reference counters should now be initialized with the PERCPU_REF_ALLOW_REINIT in order to allow switching them to the percpu mode from the atomic mode. To make percpu_ref_switch_to_percpu() call in set_in_sync() succeed,let's initialize percpu refcounters with the PERCU_REF_ALLOW_REINIT flag. Signed-off-by: Roman Gushchin <guro@fb.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'lib/percpu-refcount.c')
0 files changed, 0 insertions, 0 deletions