io_uring: make cached_cq_overflow non atomic_t
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 18 Oct 2020 09:17:40 +0000 (10:17 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Oct 2020 19:29:29 +0000 (13:29 -0600)
commit2c3bac6dd6c7af4cb38d1a67cafd29e96ba1fea7
tree07607f8885f070cb722cad8c7445de989ff7ad23
parentd148ca4b07d05656f3b25b662f2283c4d98e7299
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>
fs/io_uring.c