commit | ac38297f7038cd5b80d66f8809c7bbf5b70031f3 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@toxicpanda.com> | Tue Jul 16 16:19:29 2019 -0400 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Jul 18 10:20:14 2019 -0600 |
tree | 2144d14a14682be1c068249731f6edcfda9e4ff4 | |
parent | d14a9b389a86a5154b704bc88ce8dd37c701456a [diff] |
rq-qos: use a mb for got_token Oleg noticed that our checking of data.got_token is unsafe in the cleanup case, and should really use a memory barrier. Use a wmb on the write side, and a rmb() on the read side. We don't need one in the main loop since we're saved by set_current_state(). Reviewed-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>