]> git.baikalelectronics.ru Git - kernel.git/commit
md: initialize percpu refcounters using PERCU_REF_ALLOW_REINIT
authorRoman Gushchin <guro@fb.com>
Tue, 7 May 2019 17:01:49 +0000 (10:01 -0700)
committerDennis Zhou <dennis@kernel.org>
Thu, 9 May 2019 17:50:59 +0000 (10:50 -0700)
commit0ca8c73b65869a8599578502150f73bc10b10b98
tree6e2b6287133d7ae7f2a49ba3f1a4dc014933806c
parenteacfba34c7d6021133ef415c5f3f74f0e8464cf8
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>
drivers/md/md.c