ZFS Reads may result in unneccesary calls to zil_commit
ZoL commit 2efea7c82c5.
ZFS supports O_RSYNC for read operations and when specified will ensure
the same level of data integrity that O_DSYNC and O_SYNC provides for
writes. O_RSYNC by itself has no effect so it must be combined with
either O_DSYNC or O_SYNC. However, many platforms don't support O_RSYNC
and have mapped O_SYNC to mean O_RSYNC within ZFS. This is incorrect
and causes unnecessary calls to zil_commit. Only platforms which
support O_RSYNC should implement the zil_commit functionality in the
read code path.
Updated by Electric Monk 6 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit da7753c428994e4e6c715886c93d7b49390c3705 Author: George Wilson <email@example.com> Date: 2019-06-28T16:27:00.000Z 11052 ZFS Reads may result in unneccesary calls to zil_commit Portions contributed by: Jerry Jelinek <firstname.lastname@example.org> Reviewed by: Matt Ahrens <email@example.com> Reviewed by: Brian Behlendorf <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>