HomeFreeBSD

Linux 6.5 compat: check BLK_OPEN_EXCL is defined

Description

Linux 6.5 compat: check BLK_OPEN_EXCL is defined

On some systems we already have blkdev_get_by_path() with 4 args
but still the old FMODE_EXCL and not BLK_OPEN_EXCL defined.
The vdev_bdev_mode() function was added to handle this case
but there was no generic way to specify exclusive access.

Reviewed-by: Brian Atkinson <batkinson@lanl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #15692
(cherry picked from commit d530d5d8a567c0cf64a434f0303929dc0bb338da)

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 21 2023, 7:22 PM
Tony Hutter <hutter2@llnl.gov>Committed on Feb 8 2024, 9:29 PM
Parents
rG5f465d15151d: linux 6.7 compat: rework shrinker setup for heap allocations
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGa9dc1166b6b9: Linux 6.5 compat: check BLK_OPEN_EXCL is defined (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Feb 8 2024, 9:29 PM