Skip to content

Commit be3894a

Browse files
mjguzikRageLtMan
authored andcommitted
FreeBSD: add missing seqc write begin/end around zfs_acl_chown_setattr
It happens to trip over an assert but does not matter for correctness at this time. Done for future proofing. Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Mateusz Guzik <[email protected]> Closes openzfs#11884
1 parent 2007b1f commit be3894a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

module/os/freebsd/zfs/zfs_vnops_os.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2795,7 +2795,9 @@ zfs_setattr(znode_t *zp, vattr_t *vap, int flags, cred_t *cr)
27952795
err = zfs_acl_chown_setattr(zp);
27962796
ASSERT(err == 0);
27972797
if (attrzp) {
2798+
vn_seqc_write_begin(ZTOV(attrzp));
27982799
err = zfs_acl_chown_setattr(attrzp);
2800+
vn_seqc_write_end(ZTOV(attrzp));
27992801
ASSERT(err == 0);
28002802
}
28012803
}

0 commit comments

Comments
 (0)