nptl: Fix pthread_cancel cancelhandling atomic operations
commit62be9681677e7ce820db721c126909979382d379
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 20 Apr 2022 15:01:43 +0000 (20 12:01 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 20 Apr 2022 15:01:43 +0000 (20 12:01 -0300)
tree896a9792f83751ddfcbe544c1124a44f374ea9bd
parentc72a1a062a1ded52719802c07ab459e1fd54d2a6
nptl: Fix pthread_cancel cancelhandling atomic operations

The 404656009b reversion did not setup the atomic loop to set the
cancel bits correctly.  The fix is essentially what pthread_cancel
did prior 26cfbb7162ad.

Checked on x86_64-linux-gnu and aarch64-linux-gnu.
nptl/pthread_cancel.c