summaryrefslogtreecommitdiff
path: root/fs/file.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-01-07 03:15:43 +0000
committerJens Axboe <axboe@kernel.dk>2021-01-07 07:48:09 -0700
commitb1445e59cc9a10fdb8f83810ae1f4feb941ab36b (patch)
tree3f7ec8dc6d43cbc0baf2b2d33824ba266e0aea0d /fs/file.c
parent4aa84f2ffa81f71e15e5cffc2cc6090dbee78f8e (diff)
downloadlinux-b1445e59cc9a10fdb8f83810ae1f4feb941ab36b.tar.gz
linux-b1445e59cc9a10fdb8f83810ae1f4feb941ab36b.tar.bz2
linux-b1445e59cc9a10fdb8f83810ae1f4feb941ab36b.zip
io_uring: synchronise ev_posted() with waitqueues
waitqueue_active() needs smp_mb() to be in sync with waitqueues modification, but we miss it in io_cqring_ev_posted*() apart from cq_wait() case. Take an smb_mb() out of wq_has_sleeper() making it waitqueue_active(), and place it a few lines before, so it can synchronise other waitqueue_active() as well. The patch doesn't add any additional overhead, so even if there are no problems currently, it's just safer to have it this way. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/file.c')
0 files changed, 0 insertions, 0 deletions