remove unused refcnt field for shared libraries
[musl] / src / aio / aio.c
index 7bf2b33..aafd8e8 100644 (file)
@@ -53,7 +53,8 @@ struct aio_thread {
        struct aiocb *cb;
        struct aio_thread *next, *prev;
        struct aio_queue *q;
-       int running, err, op;
+       volatile int running;
+       int err, op;
        ssize_t ret;
 };
 
@@ -148,7 +149,7 @@ static void cleanup(void *ctx)
         * Types 1-3 are notified via atomics/futexes, mainly for AS-safety
         * considerations. Type 4 is notified later via a cond var. */
 
-       a_store(&cb->__ret, at->ret);
+       cb->__ret = at->ret;
        if (a_swap(&at->running, 0) < 0)
                __wake(&at->running, -1, 1);
        if (a_swap(&cb->__err, at->err) != EINPROGRESS)