]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
gmirror: Fix a bug introduced in r341674
authorConrad Meyer <cem@FreeBSD.org>
Wed, 12 Dec 2018 05:48:27 +0000 (05:48 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Wed, 12 Dec 2018 05:48:27 +0000 (05:48 +0000)
commit23c25bd8b165342c046c48d48447645f7a72166a
tree1831a7c530ccab84b06c5bcd169502db0e4d77a4
parentb2d7ecdd544e9d1c29e1f249fb0ee798908b9228
gmirror: Fix a bug introduced in r341674

r341674 inadvertently introduced a bug where newer mirror components being
tasted would clear the high sc_flags that are not controlled by component
metadata, such as G_MIRROR_DEVICE_FLAG_TASTING.  This could plausibly expose
a small window of time during STARTING where device destruction might race
with mirror component addition, probably resulting in a crash.

Reviewed by: markj
X-MFC-With: r341674
Differential Revision: https://reviews.freebsd.org/D18521
sys/geom/mirror/g_mirror.c