consumerd: clean-up: stream attribute accessed without locking stream
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 28 Oct 2019 18:52:44 +0000 (14:52 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 5 Nov 2019 03:28:34 +0000 (22:28 -0500)
commitfdb1cb82011362ec82e92bf7ff4eff0077af5fe2
tree945158305b0757526ff85d54aad1284a7219b4cb
parent8341c74d7315e3b8b157a9e2f2fd7e80e01aa0dd
consumerd: clean-up: stream attribute accessed without locking stream

consumer_metadata_cache_flushed makes use of the metadata stream's
ust_metadata_pushed attribute without locking while it is updated by
commit_one_metadata_packet() which holds the metadata stream lock.

This is marked as a clean-up since the attribute appears to always be
accessed while the metadata cache lock is held. However this is a
_channel_ attribute and the stream and channel lifetimes do not match,
making the locking assumptions conceptually dubious.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer-metadata-cache.c
This page took 0.025185 seconds and 4 git commands to generate.