Re: [PATCH] livepatch: Fix the issue to make livepatch enable/disable patch correctly

2015-07-22 Thread Minfei Huang
On 07/22/15 at 09:40am, Josh Poimboeuf wrote: > On Wed, Jul 15, 2015 at 04:55:06PM +0800, Minfei Huang wrote: > > From: Minfei Huang > > > > Livepatch will obey the stacking rule to enable/disable the patch. It > > only allows to enable the patch, when it is the fist disabled patch, > > disable t

Re: [PATCH] livepatch: Fix the issue to make livepatch enable/disable patch correctly

2015-07-22 Thread Josh Poimboeuf
On Wed, Jul 15, 2015 at 04:55:06PM +0800, Minfei Huang wrote: > From: Minfei Huang > > Livepatch will obey the stacking rule to enable/disable the patch. It > only allows to enable the patch, when it is the fist disabled patch, > disable the patch, when it is the last enabled patch. > > In the l

Re: [PATCH] livepatch: Fix the issue to make livepatch enable/disable patch correctly

2015-07-22 Thread Minfei Huang
Could someone help to review this patch? Thanks Minfei On 07/15/15 at 04:55pm, Minfei Huang wrote: > From: Minfei Huang > > Livepatch will obey the stacking rule to enable/disable the patch. It > only allows to enable the patch, when it is the fist disabled patch, > disable the patch, when it i

[PATCH] livepatch: Fix the issue to make livepatch enable/disable patch correctly

2015-07-15 Thread Minfei Huang
From: Minfei Huang Livepatch will obey the stacking rule to enable/disable the patch. It only allows to enable the patch, when it is the fist disabled patch, disable the patch, when it is the last enabled patch. In the livepatch code, it uses list to gather the all of the patches. And we do not