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

zvol_os: fix compile with blk-mq on Linux 4.x #16069

Merged
merged 1 commit into from
Apr 8, 2024

Commits on Apr 8, 2024

  1. zvol_os: fix compile with blk-mq on Linux 4.x

    99741bd accesses a cached blk-mq hardware context through the mq_hctx
    field of struct request. However, this field did not exist until 5.0.
    Before that, the private function blk_mq_map_queue() was used to dig it
    out of broader queue context. This commit detects this situation, and
    handles it with a poor-man's simulation of that function.
    
    Sponsored-by: Klara, Inc.
    Sponsored-by: Wasabi Technology, Inc.
    Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
    robn committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    e3abd46 View commit details
    Browse the repository at this point in the history