]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: Don't initialize anything in the core until something uses it
authorCorey Minyard <cminyard@mvista.com>
Thu, 20 Dec 2018 22:50:23 +0000 (16:50 -0600)
committerCorey Minyard <cminyard@mvista.com>
Wed, 23 Jan 2019 17:09:32 +0000 (11:09 -0600)
commit26c298fc6e7dab22da52f4243447bb2516eded91
tree4583b3d24643397fedac673ab748611a60a87b32
parente26ae38df3f96f45433cb2874e55f301ed36380e
ipmi: Don't initialize anything in the core until something uses it

The IPMI driver was recently modified to use SRCU, but it turns out
this uses a chunk of percpu memory, even if IPMI is never used.

So modify thing to on initialize on the first use.  There was already
code to sort of handle this for handling init races, so piggy back
on top of that, and simplify it in the process.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reported-by: Tejun Heo <tj@kernel.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org # 4.18
drivers/char/ipmi/ipmi_msghandler.c