HomeFreeBSD

Linux 6.11: enable queue flush through queue limits

Description

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.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16400

Details

Provenance
rob.norris_klarasystems.comAuthored on Jul 30 2024, 11:40 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 14 2024, 12:46 AM
Parents
rG767b37019f1a: linux/zvol_os: tidy and document queue limit/config setup
Branches
Unknown
Tags
Unknown