]> git.proxmox.com Git - mirror_corosync.git/commit
Remove unnecessary mmap in cpg
authorJan Friesse <jfriesse@redhat.com>
Mon, 20 May 2013 13:54:02 +0000 (15:54 +0200)
committerJan Friesse <jfriesse@redhat.com>
Tue, 21 May 2013 12:46:15 +0000 (14:46 +0200)
commite684e4ca6fed709c14d79d8d81f254aa48e1c65a
treee524f7cfb077dc5dab6ac61ea2b8d3a1095496f3
parent03f05b58d0b0ede78b872026c41164803a69eaba
Remove unnecessary mmap in cpg

Code for zero-copy in cpg does following mmaps:
- Mmap anonymous, private memory to some address (-> malloc)
- Mmap shared memory of fd to address returned by first mmap
  (effectively shadows first mapping)

This is not necessary and only one mapping is needed.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
exec/cpg.c
lib/cpg.c