Fix: only lock the metadata_cache in userspace consumers
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 7 Jan 2017 18:42:12 +0000 (13:42 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 7 Jan 2017 18:44:06 +0000 (13:44 -0500)
The kernel consumer, which re-uses the consumer_del_metadata_stream
function, has no metadata cache. Therefore, it can't be used to
protect the metadata stream (see 5feafd41).

However, only the userspace consumers invoke
consumer_metadata_cache_write() which the previous fix seeked to
protect against. It is therefore safe to omit this lock in the
kernel consumer case.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>

No differences found
This page took 0.026596 seconds and 5 git commands to generate.