• J
    io_uring: add support for marking commands as draining · de0617e4
    Jens Axboe 提交于
    There are no ordering constraints between the submission and completion
    side of io_uring. But sometimes that would be useful to have. One common
    example is doing an fsync, for instance, and have it ordered with
    previous writes. Without support for that, the application must do this
    tracking itself.
    
    This adds a general SQE flag, IOSQE_IO_DRAIN. If a command is marked
    with this flag, then it will not be issued before previous commands have
    completed, and subsequent commands submitted after the drain will not be
    issued before the drain is started.. If there are no pending commands,
    setting this flag will not change the behavior of the issue of the
    command.
    Signed-off-by: NJens Axboe <axboe@kernel.dk>
    de0617e4
io_uring.c 74.3 KB