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:34:46 +0000 (17:34 -0400)
commitab1f27f2803120be93a7c148022d5c9c412e2b7b
treeedef3f7daa6aa7bfadcb2c9f4f8d952ef075db1e
parent17136d8c6c88034daa1f214ee1716c59d6e4fd95
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.026883 seconds and 4 git commands to generate.