diff options
author | Alan Somers <[email protected]> | 2017-05-24 06:34:56 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-05-25 17:15:06 -0700 |
commit | 00710365261a89abc127efa7fae5fe36d0fae7d1 (patch) | |
tree | 57d16cf8c16ac463cb477b02e1972ee5effaf2ad /module/zfs/dbuf.c | |
parent | 959f56b99366c8727647b5b19fb3d47555c96cf3 (diff) |
OpenZFS 8070 - Add some ZFS comments
Authored by: Alan Somers <[email protected]>
Reviewed by: Yuri Pankov <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Approved by: Robert Mustacchi <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Ported-by: bunder2015 <[email protected]>
OpenZFS-issue: https://www.illumos.org/issues/8070
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/40713f2
Closes #6160
Diffstat (limited to 'module/zfs/dbuf.c')
-rw-r--r-- | module/zfs/dbuf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index d347c5b91..1575cc1b4 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -1300,6 +1300,11 @@ dbuf_unoverride(dbuf_dirty_record_t *dr) uint64_t txg = dr->dr_txg; ASSERT(MUTEX_HELD(&db->db_mtx)); + /* + * This assert is valid because dmu_sync() expects to be called by + * a zilog's get_data while holding a range lock. This call only + * comes from dbuf_dirty() callers who must also hold a range lock. + */ ASSERT(dr->dt.dl.dr_override_state != DR_IN_DMU_SYNC); ASSERT(db->db_level == 0); |