vlmemory/svm: fix client detach from svm region
Clients cannot know at svm region detach time if the shm backing files have been recreated (e.g., if vpp restarts) and therefore should not try to unlink them. Otherwise, terminating clients attached to previous instantiations of a re-allocated region end up making the new instance un-mappable by removing its backing file. Change-Id: Idcd0cab776e63fd75b821bc9f0fac58217b9ccbe Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:

committed by
Damjan Marion

parent
f2d0611e1b
commit
d6c30d9cae
@ -118,7 +118,9 @@ int svm_region_init_chroot (const char *root_path);
|
||||
void svm_region_init_chroot_uid_gid (const char *root_path, int uid, int gid);
|
||||
void svm_region_init_args (svm_map_region_args_t * a);
|
||||
void svm_region_exit (void);
|
||||
void svm_region_exit_client (void);
|
||||
void svm_region_unmap (void *rp_arg);
|
||||
void svm_region_unmap_client (void *rp_arg);
|
||||
void svm_client_scan (const char *root_path);
|
||||
void svm_client_scan_this_region_nolock (svm_region_t * rp);
|
||||
u8 *shm_name_from_svm_map_region_args (svm_map_region_args_t * a);
|
||||
|
Reference in New Issue
Block a user