• Stefan Bühler's avatar
    io_uring: fix notes on barriers · 1e84b97b
    Stefan Bühler authored
    The application reading the CQ ring needs a barrier to pair with the
    smp_store_release in io_commit_cqring, not the barrier after it.
    
    Also a write barrier *after* writing something (but not *before*
    writing anything interesting) doesn't order anything, so an smp_wmb()
    after writing SQ tail is not needed.
    
    Additionally consider reading SQ head and writing CQ tail in the notes.
    
    Also add some clarifications how the various other fields in the ring
    buffers are used.
    Signed-off-by: default avatarStefan Bühler <source@stbuehler.de>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    1e84b97b
io_uring.c 73.2 KB