]> granicus.if.org Git - zfs/commit
OpenZFS 8063 - verify that we do not attempt to access inactive txg
authorMatthew Ahrens <mahrens@delphix.com>
Mon, 24 Apr 2017 16:34:36 +0000 (09:34 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 May 2017 17:52:22 +0000 (13:52 -0400)
commit4747a7d3d48ee307176dbd4a70c3be42b9f10dc0
tree0f04fa2bebc46f7c19a544e8c1bafab0297148ef
parent335b251ac1a1f8ba8434450dc0f24986bc44f688
OpenZFS 8063 - verify that we do not attempt to access inactive txg

Authored by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Serapheim Dimitropoulos <serapheim@delphix.com>
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: George Melikov <mail@gmelikov.ru>
A standard practice in ZFS is to keep track of "per-txg" state. Any of
the 3 active TXG's (open, quiescing, syncing) can have different values
for this state. We should assert that we do not attempt to modify other
(inactive) TXG's.

Porting Notes:
- ASSERTV added to txg_sync_waiting() for unused variable.

OpenZFS-issue: https://www.illumos.org/issues/8063
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/01acb46
Closes #6109
include/sys/txg.h
include/sys/zil.h
module/zfs/dmu_tx.c
module/zfs/dsl_pool.c
module/zfs/spa.c
module/zfs/txg.c
module/zfs/vdev.c
module/zfs/zil.c