The appldata_ops callbacks are called with a spin_lock held. But theappldata_mem callback then calls all_vm_events(), which callsget_online_cpus(), which might sleep. This possible deadlock is fixedby using a mutex instead of a spin_lock.