Re: [PATCH v6 07/10] mm: synchronize access to kmem_cache dying flag using a spinlock

2019-06-10 Thread Roman Gushchin
On Sun, Jun 09, 2019 at 05:31:32PM +0300, Vladimir Davydov wrote: > On Tue, Jun 04, 2019 at 07:44:51PM -0700, Roman Gushchin wrote: > > Currently the memcg_params.dying flag and the corresponding > > workqueue used for the asynchronous deactivation of kmem_caches > > is synchronized using the slab_

Re: [PATCH v6 07/10] mm: synchronize access to kmem_cache dying flag using a spinlock

2019-06-09 Thread Vladimir Davydov
On Tue, Jun 04, 2019 at 07:44:51PM -0700, Roman Gushchin wrote: > Currently the memcg_params.dying flag and the corresponding > workqueue used for the asynchronous deactivation of kmem_caches > is synchronized using the slab_mutex. > > It makes impossible to check this flag from the irq context, >

Re: [PATCH v6 07/10] mm: synchronize access to kmem_cache dying flag using a spinlock

2019-06-05 Thread Roman Gushchin
On Wed, Jun 05, 2019 at 03:02:03PM -0700, Roman Gushchin wrote: > On Wed, Jun 05, 2019 at 12:56:16PM -0400, Johannes Weiner wrote: > > On Tue, Jun 04, 2019 at 07:44:51PM -0700, Roman Gushchin wrote: > > > Currently the memcg_params.dying flag and the corresponding > > > workqueue used for the async

Re: [PATCH v6 07/10] mm: synchronize access to kmem_cache dying flag using a spinlock

2019-06-05 Thread Roman Gushchin
On Wed, Jun 05, 2019 at 12:56:16PM -0400, Johannes Weiner wrote: > On Tue, Jun 04, 2019 at 07:44:51PM -0700, Roman Gushchin wrote: > > Currently the memcg_params.dying flag and the corresponding > > workqueue used for the asynchronous deactivation of kmem_caches > > is synchronized using the slab_m

Re: [PATCH v6 07/10] mm: synchronize access to kmem_cache dying flag using a spinlock

2019-06-05 Thread Johannes Weiner
On Tue, Jun 04, 2019 at 07:44:51PM -0700, Roman Gushchin wrote: > Currently the memcg_params.dying flag and the corresponding > workqueue used for the asynchronous deactivation of kmem_caches > is synchronized using the slab_mutex. > > It makes impossible to check this flag from the irq context, >

[PATCH v6 07/10] mm: synchronize access to kmem_cache dying flag using a spinlock

2019-06-04 Thread Roman Gushchin
Currently the memcg_params.dying flag and the corresponding workqueue used for the asynchronous deactivation of kmem_caches is synchronized using the slab_mutex. It makes impossible to check this flag from the irq context, which will be required in order to implement asynchronous release of kmem_c