]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix ZIL records ordering when ZVOL opened both with and without FSYNC.
authorAlexander Motin <mav@FreeBSD.org>
Tue, 1 Nov 2016 16:03:31 +0000 (16:03 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 1 Nov 2016 16:03:31 +0000 (16:03 +0000)
commit8acf168aab4ef7a95d91305a8b2cdb51ab71a1c7
treeff67e157536c8a89d4af5f05d799e30680633cc3
parentdba5d1ca17845e7d20c414ab88eb19c787f31183
Fix ZIL records ordering when ZVOL opened both with and without FSYNC.

Before this an earlier writes to a ZVOL opened without FSYNC could get to
ZIL after later writes to the same ZVOL opened with FSYNC.  Fix this by
replicating functionality of ZPL (zv_sync_cnt equivalent to z_sync_cnt),
marking all log records sync if anybody opened the ZVOL with FSYNC.

MFC after: 2 weeks
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zil.h
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c