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

scst_vdisk: Fix recent breakage in vdisk_exec_read_capacity16 #222

Merged

Conversation

bmeagherix
Copy link
Contributor

A recent commit (974001f) added backport support for bdev_open_by_path. This entailed adding a struct bdev_handle, but in vdisk_exec_read_capacity16 the code attempts to lookup virt_dev->bdev_handle->bdev without regard for the fact that if we are not using blockio then bdev_handle will be null. Rectify by making the lookup more robust.

A recent commit (974001f) added backport support for bdev_open_by_path.
This entailed adding a struct bdev_handle, but vdisk_exec_read_capacity16
attempts to lookup virt_dev->bdev_handle->bdev without regard for the fact
that if we are not using blockio then bdev_handle will be null.  Rectify
by making the lookup more robust.
@bmeagherix bmeagherix force-pushed the fix_vdisk_exec_read_capacity16 branch from c8e9d5e to 4605882 Compare February 22, 2024 23:59
@lnocturno lnocturno merged commit bb78492 into SCST-project:master Feb 25, 2024
3 checks passed
@lnocturno
Copy link
Contributor

Hi Brian,

Thank you for the patch!

Thanks,
Gleb

@bmeagherix bmeagherix deleted the fix_vdisk_exec_read_capacity16 branch February 26, 2024 15:07
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