]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Alike to r242314 for GRAID make GMIRROR more aggressive in marking volumes
authorAlexander Motin <mav@FreeBSD.org>
Tue, 15 Jan 2013 01:13:55 +0000 (01:13 +0000)
committerAlexander Motin <mav@FreeBSD.org>
Tue, 15 Jan 2013 01:13:55 +0000 (01:13 +0000)
commitcbab6161747f0f8a96fdf6ba7569783e6487ecba
tree8949de2ef31e64eb3e0a6b39fd52559ffc11d153
parent7f441ef26790683a85dd16984cfed0710e68f8b2
Alike to r242314 for GRAID make GMIRROR more aggressive in marking volumes
as clean on shutdown and move that action from shutdown_pre_sync stage to
shutdown_post_sync to avoid extra flapping.

ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAID
to shutdown gracefully.  To handle that, mark volume as clean just when
shutdown time comes and there are no active writes.

PR: kern/113957
MFC after: 2 weeks
sys/geom/mirror/g_mirror.c