Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre dev 0.3: cleanup io & uring_async #11

Merged
merged 7 commits into from
Mar 2, 2024
Merged

Pre dev 0.3: cleanup io & uring_async #11

merged 7 commits into from
Mar 2, 2024

Commits on Mar 1, 2024

  1. example/null: avoid to allocate io buffer for user_copy

    Signed-off-by: Ming Lei <[email protected]>
    ming1 committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    01a476c View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. libublk: io: don't expose UblkQueue::get_io_buf_addr()

    Now IO buffer is managed by target code, which needn't to retrieve
    buffer address from libublk any more.
    
    Inside io module, it is only used for discarding registered io buffers.
    
    Also mark it as not 'inline' which is only called in slow path.
    
    Signed-off-by: Ming Lei <[email protected]>
    ming1 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    6ccdc88 View commit details
    Browse the repository at this point in the history
  2. libublk: ctrl/io: remove several #[allow]

    The annotation is obsolete now, so remove them
    
    Signed-off-by: Ming Lei <[email protected]>
    ming1 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    0f0a45e View commit details
    Browse the repository at this point in the history
  3. libublk: uring_async: improve document

    Signed-off-by: Ming Lei <[email protected]>
    ming1 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    709a207 View commit details
    Browse the repository at this point in the history
  4. libublk: io: add UblkQueue::ublk_submit_sqe_sync()

    Add UblkQueue::ublk_submit_sqe_sync() so that target code can use
    it to submit sqe in non-async/.await code.
    
    Signed-off-by: Ming Lei <[email protected]>
    ming1 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    6ce79e2 View commit details
    Browse the repository at this point in the history
  5. libublk: define tgt_init return type as Result<(), UblkError>

    No need to return anything Ok() except for 0 from tgt_init()
    
    Signed-off-by: Ming Lei <[email protected]>
    ming1 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    6ec066b View commit details
    Browse the repository at this point in the history
  6. libublk: don't export UblkQueue::q_ring

    Now we don't have users for manipulating q_ring directly, but there
    could be potential use cases, such as, changing uring flags, register
    files, ...
    
    So add UblkQueue::uring_op() and UblkQueue::uring_op_mut() for such
    purpose.
    
    Signed-off-by: Ming Lei <[email protected]>
    ming1 committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    4940e93 View commit details
    Browse the repository at this point in the history