Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-08-04 Thread Greg Kroah-Hartman
On Sun, Jul 30, 2017 at 11:48:39PM +0800, Leo Yan wrote: > Hi Willy, > > On Fri, Jul 28, 2017 at 11:47:52PM +0200, Willy Tarreau wrote: > > On Fri, Jul 28, 2017 at 02:52:15PM +0800, Leo Yan wrote: > > > On Fri, Jul 28, 2017 at 06:25:55AM +0200, Willy Tarreau wrote: > > > > Hi Leo, > > > > > > >

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-08-04 Thread Greg Kroah-Hartman
On Sun, Jul 30, 2017 at 11:48:39PM +0800, Leo Yan wrote: > Hi Willy, > > On Fri, Jul 28, 2017 at 11:47:52PM +0200, Willy Tarreau wrote: > > On Fri, Jul 28, 2017 at 02:52:15PM +0800, Leo Yan wrote: > > > On Fri, Jul 28, 2017 at 06:25:55AM +0200, Willy Tarreau wrote: > > > > Hi Leo, > > > > > > >

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-30 Thread Willy Tarreau
Hi Leo, On Sun, Jul 30, 2017 at 11:48:39PM +0800, Leo Yan wrote: > > Given that 3.10 only has a few months left, if 3.10 isn't available on > > this hardware, do you really think we need to fix something in it that > > apparently nobody will be in situation to experience, at the risk of > >

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-30 Thread Willy Tarreau
Hi Leo, On Sun, Jul 30, 2017 at 11:48:39PM +0800, Leo Yan wrote: > > Given that 3.10 only has a few months left, if 3.10 isn't available on > > this hardware, do you really think we need to fix something in it that > > apparently nobody will be in situation to experience, at the risk of > >

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-30 Thread Leo Yan
Hi Willy, On Fri, Jul 28, 2017 at 11:47:52PM +0200, Willy Tarreau wrote: > On Fri, Jul 28, 2017 at 02:52:15PM +0800, Leo Yan wrote: > > On Fri, Jul 28, 2017 at 06:25:55AM +0200, Willy Tarreau wrote: > > > Hi Leo, > > > > > > There was no upstream commit ID here but I found it in mainline here :

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-30 Thread Leo Yan
Hi Willy, On Fri, Jul 28, 2017 at 11:47:52PM +0200, Willy Tarreau wrote: > On Fri, Jul 28, 2017 at 02:52:15PM +0800, Leo Yan wrote: > > On Fri, Jul 28, 2017 at 06:25:55AM +0200, Willy Tarreau wrote: > > > Hi Leo, > > > > > > There was no upstream commit ID here but I found it in mainline here :

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-28 Thread Willy Tarreau
On Fri, Jul 28, 2017 at 02:52:15PM +0800, Leo Yan wrote: > On Fri, Jul 28, 2017 at 06:25:55AM +0200, Willy Tarreau wrote: > > Hi Leo, > > > > There was no upstream commit ID here but I found it in mainline here : > > > > commit 109704492ef637956265ec2eb72ae7b3b39eb6f4 > > Author: Joel

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-28 Thread Willy Tarreau
On Fri, Jul 28, 2017 at 02:52:15PM +0800, Leo Yan wrote: > On Fri, Jul 28, 2017 at 06:25:55AM +0200, Willy Tarreau wrote: > > Hi Leo, > > > > There was no upstream commit ID here but I found it in mainline here : > > > > commit 109704492ef637956265ec2eb72ae7b3b39eb6f4 > > Author: Joel

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-28 Thread Leo Yan
On Fri, Jul 28, 2017 at 06:25:55AM +0200, Willy Tarreau wrote: > Hi Leo, > > There was no upstream commit ID here but I found it in mainline here : > > commit 109704492ef637956265ec2eb72ae7b3b39eb6f4 > Author: Joel Fernandes > Date: Thu Oct 20 00:34:00 2016 -0700 > >

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-28 Thread Leo Yan
On Fri, Jul 28, 2017 at 06:25:55AM +0200, Willy Tarreau wrote: > Hi Leo, > > There was no upstream commit ID here but I found it in mainline here : > > commit 109704492ef637956265ec2eb72ae7b3b39eb6f4 > Author: Joel Fernandes > Date: Thu Oct 20 00:34:00 2016 -0700 > > pstore: Make

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-27 Thread Willy Tarreau
Hi Leo, There was no upstream commit ID here but I found it in mainline here : commit 109704492ef637956265ec2eb72ae7b3b39eb6f4 Author: Joel Fernandes Date: Thu Oct 20 00:34:00 2016 -0700 pstore: Make spinlock per zone instead of global What worries me is

Re: [PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-27 Thread Willy Tarreau
Hi Leo, There was no upstream commit ID here but I found it in mainline here : commit 109704492ef637956265ec2eb72ae7b3b39eb6f4 Author: Joel Fernandes Date: Thu Oct 20 00:34:00 2016 -0700 pstore: Make spinlock per zone instead of global What worries me is that some later fixes

[PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-27 Thread Leo Yan
From: Joel Fernandes Currently pstore has a global spinlock for all zones. Since the zones are independent and modify different areas of memory, there's no need to have a global lock, so we should use a per-zone lock as introduced here. Also, when ramoops's ftrace use-case has

[PATCH 3.10] pstore: Make spinlock per zone instead of global

2017-07-27 Thread Leo Yan
From: Joel Fernandes Currently pstore has a global spinlock for all zones. Since the zones are independent and modify different areas of memory, there's no need to have a global lock, so we should use a per-zone lock as introduced here. Also, when ramoops's ftrace use-case has a FTRACE_PER_CPU