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

libwnbd: add WnbdPollDiskNumber function #129

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

petrutlucian94
Copy link
Member

After mapping a WNBD disk, we're informimg the Storport driver that the bus changed, expecting it to rescan the bus and then expose the disk. This happens asynchronously and usually takes a few milliseconds, however it can take a few seconds under huge load.

WNBD clients need to wait for the disk to become available before being able to use it. For convenience, we'll add a function that performs the necessary polling, waiting for a disk number to be assigned. It optionally opens the disk, ensuring that it's ready.

@petrutlucian94 petrutlucian94 force-pushed the wait_disk branch 2 times, most recently from b5cffd5 to 4a60344 Compare August 24, 2023 12:42
After mapping a WNBD disk, we're informimg the Storport driver
that the bus changed, expecting it to rescan the bus and then
expose the disk. This happens asynchronously and usually takes
a few milliseconds, however it can take a few seconds under
huge load.

WNBD clients need to wait for the disk to become available before
being able to use it. For convenience, we'll add a function
that performs the necessary polling, waiting for a disk number
to be assigned. It optionally opens the disk, ensuring that it's
ready.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
@petrutlucian94 petrutlucian94 merged commit 95062e7 into cloudbase:main Aug 24, 2023
3 checks passed
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.

None yet

1 participant