commit | 2c3bac6dd6c7af4cb38d1a67cafd29e96ba1fea7 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Sun Oct 18 10:17:40 2020 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Oct 19 13:29:29 2020 -0600 |
tree | 07607f8885f070cb722cad8c7445de989ff7ad23 | |
parent | d148ca4b07d05656f3b25b662f2283c4d98e7299 [diff] |
io_uring: make cached_cq_overflow non atomic_t ctx->cached_cq_overflow is changed only under completion_lock. Convert it from atomic_t to just int, and mark all places when it's read without lock with READ_ONCE, which guarantees atomicity (relaxed ordering). Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>