lockprof: don't leave locks uninitialized upon allocation failure
authorJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2020 08:18:30 +0000 (10:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2020 08:18:30 +0000 (10:18 +0200)
commit82cba984b2e37496360ef2bf22e529a53c084631
tree9cdfa507bcb468d5957dda4453513fe5678d5475
parent55f8c389d4348cc517946fdcb10794112458e81e
lockprof: don't leave locks uninitialized upon allocation failure

Even if a specific struct lock_profile instance can't be allocated, the
lock itself should still be functional. As this isn't a production use
feature, also log a message in the event that the profiling struct can't
be allocated.

Fixes: d98feda5c756 ("Make lock profiling usable again")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/xen/spinlock.h