Re: [Xen-devel] [PATCH v7 7/9] mm: Keep heap accessible to others while scrubbing

2017-08-14 Thread Jan Beulich
>>> On 08.08.17 at 23:45, wrote: > Instead of scrubbing pages while holding heap lock we can mark > buddy's head as being scrubbed and drop the lock temporarily. > If someone (most likely alloc_heap_pages()) tries to access > this chunk it will signal the scrubber to abort scrub by setting > head'

[Xen-devel] [PATCH v7 7/9] mm: Keep heap accessible to others while scrubbing

2017-08-08 Thread Boris Ostrovsky
Instead of scrubbing pages while holding heap lock we can mark buddy's head as being scrubbed and drop the lock temporarily. If someone (most likely alloc_heap_pages()) tries to access this chunk it will signal the scrubber to abort scrub by setting head's BUDDY_SCRUB_ABORT bit. The scrubber checks