rcu: fix spurious thread unregister
authorRuifeng Wang <ruifeng.wang@arm.com>
Mon, 9 Sep 2019 13:51:42 +0000 (21:51 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Fri, 18 Oct 2019 04:13:36 +0000 (06:13 +0200)
commitb36f587f010bba421a8fd0b4c383276ecb796ae3
treeb9dc3b5f2faf69d805a61158c9785fef27c9045a
parente484ccddbe1b41886fef1e445ef2fdfa55086198
rcu: fix spurious thread unregister

Thread unregister returns success while unregister not been performed.
This is due to incorrect thread registration status check.
Fix this issue by correcting bitmap check.

Fixes: 64994b56cfd7 ("rcu: add RCU library supporting QSBR mechanism")
Cc: stable@dpdk.org
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_rcu/rte_rcu_qsbr.c