Clean-up shm directory tree after freeing the channel
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 17 Mar 2016 20:18:14 +0000 (16:18 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 24 Mar 2016 20:57:06 +0000 (16:57 -0400)
commite349e5d45f216ce4f716f1a5eef3e027aeacddaf
treedfda0fe7b2fb22561daee36c687b4ffc4ffe198d
parent5793af52d97e2874dc0ff6719d0433dad1458e6e
Clean-up shm directory tree after freeing the channel

On NFS, an unlinked file that is still mmaped or unclosed is kept
around by creating a .nfsXXXX file since it may still be in use. [1]

This prevents the effective cleanup of the shm tree directory because
it happens before the userspace consumer shm handles table
cleanup. [2]

Moving the tree removal to lttng_ustconsumer_free_channel ensures that
the cleanup is done when the files are completely closed/unmapped.

[1] http://nfs.sourceforge.net/ Look for "silly rename"
[2] See channel_free subcall to shm_object_table_destroy

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/ust-consumer/ust-consumer.c
This page took 0.025493 seconds and 4 git commands to generate.