Commit Graph

3 Commits

Author SHA1 Message Date
Jeff Moyer 2186589925 io_uring: kill dead code in io_req_complete_post
JIRA: https://issues.redhat.com/browse/RHEL-64867

commit f39130004d3a9155d113284c19b5a7c2eccb43fe
Author: Ming Lei <ming.lei@redhat.com>
Date:   Fri Apr 5 16:50:02 2024 +0100

    io_uring: kill dead code in io_req_complete_post
    
    Since commit 8f6c829491fe ("io_uring: remove struct io_tw_state::locked"),
    io_req_complete_post() is only called from io-wq submit work, where the
    request reference is guaranteed to be grabbed and won't drop to zero
    in io_req_complete_post().
    
    Kill the dead code, meantime add req_ref_put() to put the reference.
    
    Cc: Pavel Begunkov <asml.silence@gmail.com>
    Signed-off-by: Ming Lei <ming.lei@redhat.com>
    Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
    Signed-by: Pavel Begunkov <asml.silence@gmail.com>
    Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
    Link: https://lore.kernel.org/r/1d8297e2046553153e763a52574f0e0f4d512f86.1712331455.git.asml.silence@gmail.com
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
2024-11-28 17:12:44 -05:00
Jeff Moyer 61793331ab io_uring: make io_uring_types.h public
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2068237

commit ab1c84d855cf2c284fa0f4b17fc04063659c54a1
Author: Pavel Begunkov <asml.silence@gmail.com>
Date:   Thu Jun 16 13:57:19 2022 +0100

    io_uring: make io_uring_types.h public
    
    Move io_uring types to linux/include, need them public so tracing can
    see the definitions and we can clean trace/events/io_uring.h
    
    Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
    Link: https://lore.kernel.org/r/a15f12e8cb7289b2de0deaddcc7518d98a132d17.1655384063.git.asml.silence@gmail.com
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
2023-04-29 06:20:02 -04:00
Jeff Moyer b7b6d8748b io_uring: move our reference counting into a header
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2068237

commit e418bbc97bffda868934acfdf8a1173ab044be69
Author: Jens Axboe <axboe@kernel.dk>
Date:   Wed May 25 08:56:52 2022 -0600

    io_uring: move our reference counting into a header
    
    Signed-off-by: Jens Axboe <axboe@kernel.dk>

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
2023-04-29 05:28:02 -04:00