cvs commit: src/sys/geom/mirror g_mirror.c g_mirror.h g_mirror_ctl.c
Pawel Jakub Dawidek
pjd at FreeBSD.org
Wed May 10 07:10:05 UTC 2006
pjd 2006-05-10 07:10:03 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sys/geom/mirror g_mirror.c g_mirror.h g_mirror_ctl.c
MFC: sys/geom/mirror/g_mirror.c 1.81,1.82,1.83
Sync gmirror with HEAD:
- Introduce and use delayed-destruction functionality from a pre-sync hook,
which means that devices will be destroyed on last close.
This fixes destruction order problems when, eg. RAID3 array is build on
top of RAID1 arrays.
Requested, reviewed and tested by: ru
- Be sure to not destroy device twice. This is only possible in theory, but
with this change there is even no theoretical race.
- Remove dead code.
- Comment possible event miss, which isn't critical, but probably can be
fixed by replacing the event lock usage with the queue lock.
Revision Changes Path
188.8.131.52 +100 -68 src/sys/geom/mirror/g_mirror.c
184.108.40.206 +5 -1 src/sys/geom/mirror/g_mirror.h
220.127.116.11 +7 -1 src/sys/geom/mirror/g_mirror_ctl.c
More information about the cvs-src