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 over 1 year ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit da7753c428994e4e6c715886c93d7b49390c3705 Author: George Wilson <firstname.lastname@example.org> Date: 2019-06-28T16:27:00.000Z 11052 ZFS Reads may result in unneccesary calls to zil_commit Portions contributed by: Jerry Jelinek <email@example.com> Reviewed by: Matt Ahrens <firstname.lastname@example.org> Reviewed by: Brian Behlendorf <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Andy Fiddaman <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>