consumerd: move rotation logic to domain-agnostic read path
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 8 May 2020 20:00:11 +0000 (16:00 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 May 2020 21:05:46 +0000 (17:05 -0400)
commit9573993e2f09289e9d310ea8fd3a7298da9cdecf
tree11d8df3432fa3f416d96bc094d66656cd93ea116
parent705139131a5fbf904d05b63b0735532b10948e34
consumerd: move rotation logic to domain-agnostic read path

The "rotation ready" logic is duplicated in both user space and kernel
specializations of the read subbuffer functions.

It is moved to the domain-agnostic caller where it is needed only
once. This makes it easier to implement a follow-up fix and reduces
code duplication.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Iae952a2cd52fa458cec956ae219492557e4adf79
src/common/consumer/consumer.c
src/common/kernel-consumer/kernel-consumer.c
src/common/ust-consumer/ust-consumer.c
This page took 0.025006 seconds and 4 git commands to generate.