relayd: close viewer stream trace chunk earlier on release
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 6 Nov 2019 19:43:18 +0000 (14:43 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 13 Nov 2019 19:40:50 +0000 (14:40 -0500)
commitbf2a6bfcc824e53bf1c1e1ea9d3ff8a0b32b88e5
treec9a9f2b992481c7a482e5168fb8a13ae4e52d813
parent3aa6cec4a8255f9e6a1ca79fa75365510aa9041d
relayd: close viewer stream trace chunk earlier on release

A viewer stream puts its references to its stream and index files
within its "release" method (called when its reference count reaches
0).

However, the reference to its trace chunk is only released during the
RCU reclamation of the viewer stream. This unnecessarily delays the
clean-up of the viewer trace chunk.

For cleanliness' sake, move the release of the viewer stream's trace
chunk to the release method, just after the release of the various
file handles of that stream.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/viewer-stream.c
This page took 0.026182 seconds and 4 git commands to generate.