Print this page
5042 stop using deprecated atomic functions
*** 3605,3616 ****
*/
eqd_push_list(eqdp, (uintptr_t)eq.eq_pend);
/*
* If eq_ptail is set, it may point to a subset of the errors on the
! * pending list in the event a casptr() failed; if ptail's data is
! * already in our stack, NULL out eq_ptail and ignore it.
*/
if (eq.eq_ptail != NULL) {
for (i = 0; i < eqdp->eqd_qpos; i++) {
if (eqdp->eqd_stack[i] == (uintptr_t)eqe.eqe_data) {
eq.eq_ptail = NULL;
--- 3605,3616 ----
*/
eqd_push_list(eqdp, (uintptr_t)eq.eq_pend);
/*
* If eq_ptail is set, it may point to a subset of the errors on the
! * pending list in the event a atomic_cas_ptr() failed; if ptail's
! * data is already in our stack, NULL out eq_ptail and ignore it.
*/
if (eq.eq_ptail != NULL) {
for (i = 0; i < eqdp->eqd_qpos; i++) {
if (eqdp->eqd_stack[i] == (uintptr_t)eqe.eqe_data) {
eq.eq_ptail = NULL;