]> git.proxmox.com Git - mirror_zfs.git/commit
FreeBSD: Remove BIO_ORDERED flag from BIO_FLUSH
authorAlexander Motin <mav@FreeBSD.org>
Fri, 30 Oct 2020 15:50:57 +0000 (11:50 -0400)
committerGitHub <noreply@github.com>
Fri, 30 Oct 2020 15:50:57 +0000 (08:50 -0700)
commite3a6ac8d06210ac035cec8d86fab05549ff54f94
tree2ff624e42ef5a04fc8a75d10d5477eb90907ba2a
parentf829227f49117c4466bab88e90c187b273211c5f
FreeBSD: Remove BIO_ORDERED flag from BIO_FLUSH

ZFS always waits for the write completion before flushing the cache.
That is why it does not require explicit ordering fences around it,
which are pretty difficult to implement for NVMe, since one has no
internal concept of strict request ordering.

This was already removed from FreeBSD once, but got resurrected
by mistake during OpenZFS merge.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Closes #11130
module/os/freebsd/zfs/vdev_geom.c