io_uring: use wait_event_interruptible for cq_wait conditional wait
authorJackie Liu <liuyun01@kylinos.cn>
Thu, 16 May 2019 03:46:31 +0000 (11:46 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 May 2019 14:10:27 +0000 (08:10 -0600)
commitfdb288a679cdf6a71f3c1ae6f348ba4dae742681
tree999a58292172b6ea599d7617c8078eac0b416074
parentdc6ce4bc2b355a47f225a0205046b3ebf29a7f72
io_uring: use wait_event_interruptible for cq_wait conditional wait

The previous patch has ensured that io_cqring_events contain
smp_rmb memory barriers, Now we can use wait_event_interruptible
to keep the code simple.

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