freebsd-skq/sys/geom/mirror
markj 652ed11da6 Fix handling of read errors during mirror synchronization.
We would previously just free the request BIO, which would either cause
the disk to stay stuck in the SYNCHRONIZING state, or result in
synchronization completing without having copied the block which
returned an error.

With this change, if the disk which returned an error is the only active
disk in the mirror, the synchronizing disk is kicked out. Otherwise, the
read is retried.

Reported and tested by:	pho (previous version)
MFC after:	2 weeks
Sponsored by:	Dell EMC Isilon
2018-01-10 19:37:21 +00:00
..
g_mirror_ctl.c Sort and remove unneeded includes. 2018-01-08 15:56:40 +00:00
g_mirror.c Fix handling of read errors during mirror synchronization. 2018-01-10 19:37:21 +00:00
g_mirror.h Clarify the use of the gmirror flag mask constants. 2018-01-10 15:21:36 +00:00