Skip to content

reset support in SPDK bdev uring#73

Open
susobhandey wants to merge 1 commit into
openebs:v24.01.x-mayastorfrom
susobhandey:reset_uring_io
Open

reset support in SPDK bdev uring#73
susobhandey wants to merge 1 commit into
openebs:v24.01.x-mayastorfrom
susobhandey:reset_uring_io

Conversation

@susobhandey
Copy link
Copy Markdown

    Reset support in SPDK bdev uring
    RESET request arrives
        ↓
    bdev_uring_reset()
        ↓
    store reset_task
        ↓
    bdev_uring_reset_retry_timer()
        ↓
    spdk_for_each_channel()
        ↓
    check each channel:
        if (io_pending || io_inflight)
            status = -1
        else
            status = 0
        ↓
    _done(status)
        ↓
    if status == -1
        schedule retry (500us)
        goto check again
    else
        complete reset SUCCESS

check each channel and make sure there is no inflight or pending IO

Signed-off-by: Susobhan Dey <susobhan.dey@datacore.com>
@tiagolobocastro
Copy link
Copy Markdown
Member

@susobhandey since this is generally useful for spdk can you raise this on the spdk's gerrit first?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants