Re: [PATCH 4/7] mm: defer vmalloc from atomic context

2016-11-08 Thread Andrey Ryabinin
On 11/07/2016 06:09 PM, Christoph Hellwig wrote: > On Mon, Nov 07, 2016 at 06:01:45PM +0300, Andrey Ryabinin wrote: >>> So because in_atomic doesn't work for !CONFIG_PREEMPT kernels, can we >>> always defer the work in these cases? >>> >>> So for non-preemptible kernels, we always defer: >>> >>>

Re: [PATCH 4/7] mm: defer vmalloc from atomic context

2016-11-07 Thread Andrey Ryabinin
On 11/05/2016 06:43 AM, Joel Fernandes wrote: > On Mon, Oct 24, 2016 at 8:44 AM, Andrey Ryabinin > wrote: >> >> >> On 10/22/2016 06:17 PM, Christoph Hellwig wrote: >>> We want to be able to use a sleeping lock for freeing vmap to keep >>> latency down. For this we need to use the deferred vfree m

Re: [PATCH 4/7] mm: defer vmalloc from atomic context

2016-11-07 Thread Joel Fernandes
On Mon, Nov 7, 2016 at 7:01 AM, Andrey Ryabinin wrote: > On 11/05/2016 06:43 AM, Joel Fernandes wrote: >> On Mon, Oct 24, 2016 at 8:44 AM, Andrey Ryabinin >> wrote: >>> >>> >>> On 10/22/2016 06:17 PM, Christoph Hellwig wrote: We want to be able to use a sleeping lock for freeing vmap to keep

Re: [PATCH 4/7] mm: defer vmalloc from atomic context

2016-11-07 Thread Christoph Hellwig
On Mon, Nov 07, 2016 at 06:01:45PM +0300, Andrey Ryabinin wrote: > > So because in_atomic doesn't work for !CONFIG_PREEMPT kernels, can we > > always defer the work in these cases? > > > > So for non-preemptible kernels, we always defer: > > > > if (!IS_ENABLED(CONFIG_PREEMPT) || in_atomic()) { >

Re: [PATCH 4/7] mm: defer vmalloc from atomic context

2016-11-04 Thread Joel Fernandes
On Mon, Oct 24, 2016 at 8:44 AM, Andrey Ryabinin wrote: > > > On 10/22/2016 06:17 PM, Christoph Hellwig wrote: >> We want to be able to use a sleeping lock for freeing vmap to keep >> latency down. For this we need to use the deferred vfree mechanisms >> no only from interrupt, but from any atomi

Re: [PATCH 4/7] mm: defer vmalloc from atomic context

2016-10-24 Thread Andrey Ryabinin
On 10/22/2016 06:17 PM, Christoph Hellwig wrote: > We want to be able to use a sleeping lock for freeing vmap to keep > latency down. For this we need to use the deferred vfree mechanisms > no only from interrupt, but from any atomic context. > > Signed-off-by: Christoph Hellwig > --- > mm/vm

[PATCH 4/7] mm: defer vmalloc from atomic context

2016-10-22 Thread Christoph Hellwig
We want to be able to use a sleeping lock for freeing vmap to keep latency down. For this we need to use the deferred vfree mechanisms no only from interrupt, but from any atomic context. Signed-off-by: Christoph Hellwig --- mm/vmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di