Skip to content

OpenZFS on FreeBSD needs to support BIO_ORDERED #13065

@peterjeremy

Description

@peterjeremy

System information

Type Version/Name
Distribution Name FreeBSD
Distribution Version 13.0-stable
Kernel Version 13.0-STABLE 0fc6eebbf763
Architecture amd64
OpenZFS Version zfs-2.1.2-FreeBSD_gaf88d47f1, zfs-kmod-2.1.2-FreeBSD_gaf88d47f1

Describe the problem you're observing

OpenZFS doesn't include the BIO_ORDERED flag on bio operations it generates. This allows the FreeBSD I/O subsystem to arbitrarily reorder I/O operations, which breaks ZFS expectations regarding which data is on stable storage.

Describe how to reproduce the problem

  1. OpenZFS code search.
  2. With a geom_gate(4) patched to detect BIO_ORDERED operations, do a zpool create, zfs recv and zpool export to a geom_gate device and note the absence of any BIO_ORDERED operations.

Include any warning/errors/backtraces from the system logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DefectIncorrect behavior (e.g. crash, hang)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions