Re: [PATCH v2] mm: vmalloc: Replace purge_lock spinlock with atomic refcount

2016-10-17 Thread Joel Fernandes
Hi Nick, On Sun, Oct 16, 2016 at 9:00 PM, Nicholas Piggin wrote: > On Sat, 15 Oct 2016 03:42:42 -0700 > Joel Fernandes wrote: > >> The purge_lock spinlock causes high latencies with non RT kernel. This has >> been >> reported multiple times on lkml [1] [2] and affects applications like audio. >

Re: [PATCH v2] mm: vmalloc: Replace purge_lock spinlock with atomic refcount

2016-10-16 Thread Nicholas Piggin
On Sat, 15 Oct 2016 03:42:42 -0700 Joel Fernandes wrote: > The purge_lock spinlock causes high latencies with non RT kernel. This has > been > reported multiple times on lkml [1] [2] and affects applications like audio. > > In this patch, I replace the spinlock with an atomic refcount so that >

[PATCH v2] mm: vmalloc: Replace purge_lock spinlock with atomic refcount

2016-10-15 Thread Joel Fernandes
The purge_lock spinlock causes high latencies with non RT kernel. This has been reported multiple times on lkml [1] [2] and affects applications like audio. In this patch, I replace the spinlock with an atomic refcount so that preemption is kept turned on during purge. This Ok to do since [3] buil