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

Linux 6.11 compatibility #16400

Closed
wants to merge 8 commits into from
Closed

Linux 6.11 compatibility #16400

wants to merge 8 commits into from

Commits on Aug 13, 2024

  1. linux/zvol_os: tidy and document queue limit/config setup

    It gets hairier again in Linux 6.11, so I want some actual theory of
    operation laid out for next time.
    
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    robn committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    a91cc99 View commit details
    Browse the repository at this point in the history
  2. Linux 6.11: enable queue flush through queue limits

    In 6.11 struct queue_limits gains a 'features' field, where, among other
    things, flush and write-cache are enabled. Detect it and use it.
    
    Along the way, the blk_queue_set_write_cache() compat wrapper gets a
    little cleanup. Since both flags are alway set together, its now a
    single bool. Also the very very ancient version that sets q->flush_flags
    directly couldn't actually turn it off, so I've fixed that. Not that we
    use it, but still.
    
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    robn committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    36f8c0f View commit details
    Browse the repository at this point in the history
  3. Linux 6.11: get backing_dev_info through queue gendisk

    It's no longer available directly on the request queue, but its easy to
    get from the attached disk.
    
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    robn committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    179eca8 View commit details
    Browse the repository at this point in the history
  4. Linux 6.11: first arg to proc_handler is now const

    Detect it, and use a macro to make sure we always match the prototype.
    
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    robn committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    0b543f7 View commit details
    Browse the repository at this point in the history
  5. Linux 6.11: IO stats is now a queue feature flag

    Apply them with with the rest of the settings.
    
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    robn committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    f618abf View commit details
    Browse the repository at this point in the history
  6. Linux 6.11: add more queue_limit fields with removed setters

    These fields are very old, so no detection necessary; we just move them
    into the limit setup functions.
    
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    robn committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    cf941b9 View commit details
    Browse the repository at this point in the history
  7. Linux 6.11: add compat macro for page_mapping()

    Since the change to folios it has just been a wrapper anyway. Linux has
    removed their wrapper, so we add one.
    
    Signed-off-by: Rob Norris <[email protected]>
    Sponsored-by: https://despairlabs.com/sponsor/
    robn committed Aug 13, 2024
    Configuration menu
    Copy the full SHA
    ccbacb8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    50229a1 View commit details
    Browse the repository at this point in the history