aio: fix newp->running data race
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 4 May 2016 13:14:29 +0000 (15:14 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Wed, 4 May 2016 13:14:29 +0000 (15:14 +0200)
commitfd67a9cf7b733da082e4b6a5f25c19ea7921b4cd
treed3b9b15daa78a73e36a4624021585f916f8646d5
parent066746783d6c6c0f61b39c741177e24a9b398a20
aio: fix newp->running data race

* sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Do not write
`running` field of `newp` when a thread was started to process it,
since that thread will not take `__aio_requests_mutex`, and the field
already has the proper value actually.
ChangeLog
sysdeps/pthread/aio_misc.c