All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [pull request] heap reference and trivial build fixes
@ 2009-11-09 20:36 Jan Kiszka
  2009-11-10 11:01 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2009-11-09 20:36 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 1746 bytes --]

The following changes since commit 6d7d6bc436ef3d1fb51fa8de06d4ecf004e3b6a5:
  Gilles Chanteperdrix (1):
        nucleus: defer selector block deletion to an APC.

are available in the git repository at:

  git://git.xenomai.org/xenomai-jki.git for-upstream

Jan Kiszka (2):
      nucleus: Track heap mapping on to mm-clone
      nucleus: Fix trivial build warning

 ksrc/nucleus/heap.c   |   12 +++++++++++-
 ksrc/nucleus/module.c |    2 +-
 2 files changed, 12 insertions(+), 2 deletions(-)

---

[PATCH] nucleus: Track heap mapping on to mm-clone

When the mm is cloned (due to fork), the heap mapping counter need to be
updated as well. Register an open callback with the vm-ops for this
purpose.

Signed-off-by: Jan Kiszka <jan.kiszka@domain.hid>
---
 ksrc/nucleus/heap.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/ksrc/nucleus/heap.c b/ksrc/nucleus/heap.c
index b5fb1cd..27a4ad7 100644
--- a/ksrc/nucleus/heap.c
+++ b/ksrc/nucleus/heap.c
@@ -1017,6 +1017,15 @@ static void __unreserve_and_free_heap(void *ptr, size_t size, int kmflags)
 	}
 }
 
+static void xnheap_vmopen(struct vm_area_struct *vma)
+{
+	xnheap_t *heap = vma->vm_private_data;
+
+	spin_lock(&kheapq_lock);
+	heap->archdep.numaps++;
+	spin_unlock(&kheapq_lock);
+}
+
 static void xnheap_vmclose(struct vm_area_struct *vma)
 {
 	xnheap_t *heap = vma->vm_private_data;
@@ -1037,7 +1046,8 @@ static void xnheap_vmclose(struct vm_area_struct *vma)
 }
 
 static struct vm_operations_struct xnheap_vmops = {
-      .close = &xnheap_vmclose
+	.open = &xnheap_vmopen,
+	.close = &xnheap_vmclose
 };
 
 static int xnheap_open(struct inode *inode, struct file *file)
-- 
1.6.0.2


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] [pull request] heap reference and trivial build fixes
  2009-11-09 20:36 [Xenomai-core] [pull request] heap reference and trivial build fixes Jan Kiszka
@ 2009-11-10 11:01 ` Gilles Chanteperdrix
  2009-11-10 12:05   ` Jan Kiszka
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2009-11-10 11:01 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> The following changes since commit 6d7d6bc436ef3d1fb51fa8de06d4ecf004e3b6a5:
>   Gilles Chanteperdrix (1):
>         nucleus: defer selector block deletion to an APC.
> 
> are available in the git repository at:
> 
>   git://git.xenomai.org/xenomai-jki.git for-upstream
> 
> Jan Kiszka (2):
>       nucleus: Track heap mapping on to mm-clone
>       nucleus: Fix trivial build warning
> 
>  ksrc/nucleus/heap.c   |   12 +++++++++++-
>  ksrc/nucleus/module.c |    2 +-
>  2 files changed, 12 insertions(+), 2 deletions(-)

Hi Jan,

do you agree if I add the notification to the xenomai-git mailing list
for your tree? It makes it possible to review your patches without any
action on your side. Note that a recent modification to the notification
mechanism only shows the relevant patches.

-- 
                                          Gilles



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] [pull request] heap reference and trivial build fixes
  2009-11-10 11:01 ` Gilles Chanteperdrix
@ 2009-11-10 12:05   ` Jan Kiszka
  2009-11-10 13:04     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2009-11-10 12:05 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]

Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> The following changes since commit 6d7d6bc436ef3d1fb51fa8de06d4ecf004e3b6a5:
>>   Gilles Chanteperdrix (1):
>>         nucleus: defer selector block deletion to an APC.
>>
>> are available in the git repository at:
>>
>>   git://git.xenomai.org/xenomai-jki.git for-upstream
>>
>> Jan Kiszka (2):
>>       nucleus: Track heap mapping on to mm-clone
>>       nucleus: Fix trivial build warning
>>
>>  ksrc/nucleus/heap.c   |   12 +++++++++++-
>>  ksrc/nucleus/module.c |    2 +-
>>  2 files changed, 12 insertions(+), 2 deletions(-)
> 
> Hi Jan,
> 
> do you agree if I add the notification to the xenomai-git mailing list
> for your tree? It makes it possible to review your patches without any
> action on your side. Note that a recent modification to the notification
> mechanism only shows the relevant patches.
> 

No problem. Ah, the new filter looks nice!

And how would my new workflow look like? Just silently push into
'for-upstream'?

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] [pull request] heap reference and trivial build fixes
  2009-11-10 12:05   ` Jan Kiszka
@ 2009-11-10 13:04     ` Gilles Chanteperdrix
  2009-11-10 16:24       ` Jan Kiszka
  0 siblings, 1 reply; 5+ messages in thread
From: Gilles Chanteperdrix @ 2009-11-10 13:04 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

Jan Kiszka wrote:
> Gilles Chanteperdrix wrote:
>> Jan Kiszka wrote:
>>> The following changes since commit 6d7d6bc436ef3d1fb51fa8de06d4ecf004e3b6a5:
>>>   Gilles Chanteperdrix (1):
>>>         nucleus: defer selector block deletion to an APC.
>>>
>>> are available in the git repository at:
>>>
>>>   git://git.xenomai.org/xenomai-jki.git for-upstream
>>>
>>> Jan Kiszka (2):
>>>       nucleus: Track heap mapping on to mm-clone
>>>       nucleus: Fix trivial build warning
>>>
>>>  ksrc/nucleus/heap.c   |   12 +++++++++++-
>>>  ksrc/nucleus/module.c |    2 +-
>>>  2 files changed, 12 insertions(+), 2 deletions(-)
>> Hi Jan,
>>
>> do you agree if I add the notification to the xenomai-git mailing list
>> for your tree? It makes it possible to review your patches without any
>> action on your side. Note that a recent modification to the notification
>> mechanism only shows the relevant patches.
>>
> 
> No problem. Ah, the new filter looks nice!
> 
> And how would my new workflow look like? Just silently push into
> 'for-upstream'?

Well, it does not work for me, because I always realize that I screwed
up AFTER I push the changes. Besides, we may push things only for
review, so, I would keep the pull requests and the discussions on the
list, only avoid publishing the patches manually on the list. But this
is open for discussion of course.

-- 
                                          Gilles



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-core] [pull request] heap reference and trivial build fixes
  2009-11-10 13:04     ` Gilles Chanteperdrix
@ 2009-11-10 16:24       ` Jan Kiszka
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Kiszka @ 2009-11-10 16:24 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]

Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> Gilles Chanteperdrix wrote:
>>> Jan Kiszka wrote:
>>>> The following changes since commit 6d7d6bc436ef3d1fb51fa8de06d4ecf004e3b6a5:
>>>>   Gilles Chanteperdrix (1):
>>>>         nucleus: defer selector block deletion to an APC.
>>>>
>>>> are available in the git repository at:
>>>>
>>>>   git://git.xenomai.org/xenomai-jki.git for-upstream
>>>>
>>>> Jan Kiszka (2):
>>>>       nucleus: Track heap mapping on to mm-clone
>>>>       nucleus: Fix trivial build warning
>>>>
>>>>  ksrc/nucleus/heap.c   |   12 +++++++++++-
>>>>  ksrc/nucleus/module.c |    2 +-
>>>>  2 files changed, 12 insertions(+), 2 deletions(-)
>>> Hi Jan,
>>>
>>> do you agree if I add the notification to the xenomai-git mailing list
>>> for your tree? It makes it possible to review your patches without any
>>> action on your side. Note that a recent modification to the notification
>>> mechanism only shows the relevant patches.
>>>
>> No problem. Ah, the new filter looks nice!
>>
>> And how would my new workflow look like? Just silently push into
>> 'for-upstream'?
> 
> Well, it does not work for me, because I always realize that I screwed
> up AFTER I push the changes. Besides, we may push things only for
> review, so, I would keep the pull requests and the discussions on the
> list, only avoid publishing the patches manually on the list. But this
> is open for discussion of course.

Fine with me as well, specifically as I tend to face similar problems.
And as one can pick the patches for citing from xenomai-git, commenting
on patching shouldn't be much harder for the reviewer.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-10 16:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-09 20:36 [Xenomai-core] [pull request] heap reference and trivial build fixes Jan Kiszka
2009-11-10 11:01 ` Gilles Chanteperdrix
2009-11-10 12:05   ` Jan Kiszka
2009-11-10 13:04     ` Gilles Chanteperdrix
2009-11-10 16:24       ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.