rcu: update QS only when there are updates from writer
authorHonnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Tue, 8 Oct 2019 21:12:20 +0000 (16:12 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Mon, 21 Oct 2019 15:54:41 +0000 (17:54 +0200)
commit33466e0fe17e9dcae80f66bc340b541321f8308b
treef72e723390a7f336c6064f16083cf633041731e4
parent1f90d32ce1756bfd26da913940e3ac38153c6e9a
rcu: update QS only when there are updates from writer

When the writer is checking the quiescent state status, it is not
deleting any entries in the data structure. This means, the readers
do not need to update their quiescent state during that period.
Readers update the quiescent state only when there are updates
available from the writer.

Signed-off-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
lib/librte_rcu/rte_rcu_qsbr.h