]> xenbits.xensource.com Git - xen.git/commit
mm: don't hold heap lock in alloc_heap_pages() longer than necessary
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 30 Aug 2017 09:05:02 +0000 (11:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 30 Aug 2017 09:05:02 +0000 (11:05 +0200)
commitdab6a84aadab11f31332030a1e9f0b9282d76156
tree727a3e5491cceb46f7d370727f8406fb6984cd7b
parent7c4dc5dbdfd383cd58bcac522f746409e9c0c267
mm: don't hold heap lock in alloc_heap_pages() longer than necessary

Once pages are removed from the heap we don't need to hold the heap
lock. It is especially useful to drop it for an unscrubbed buddy since
we will be scrubbing it.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/common/page_alloc.c