io_uring: adjust smp_rmb inside io_cqring_events
authorJackie Liu <liuyun01@kylinos.cn>
Thu, 16 May 2019 03:46:30 +0000 (11:46 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 May 2019 14:10:25 +0000 (08:10 -0600)
commitdc6ce4bc2b355a47f225a0205046b3ebf29a7f72
tree78492c45930982a9d1fae0ce6eed67c2a92597b1
parent2bbcd6d3b36a75a19be4917807f54ae32dd26aba
io_uring: adjust smp_rmb inside io_cqring_events

Whenever smp_rmb is required to use io_cqring_events,
keep smp_rmb inside the function io_cqring_events.

Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c