Commit 9c958269 authored by Alessandro Rubini's avatar Alessandro Rubini

core bugfix: init zstat spinlock

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 3a28b830
......@@ -2341,6 +2341,7 @@ static int __init zio_init(void)
if (err)
goto out_cdev;
spin_lock_init(&zstat->lock);
INIT_LIST_HEAD(&zstat->all_devices.list);
zstat->all_devices.zobj_type = ZIO_DEV;
INIT_LIST_HEAD(&zstat->all_trigger_types.list);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment