pjd 94bc1342b1 MFC: sys/geom/raid3/g_raid3.c 1.60,1.62,1.63,1.66
sys/geom/raid3/g_raid3.h	1.18
	sys/geom/raid3/g_raid3_ctl.c	1.16

Sync graid3 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.

- Use G_RAID3_FOREACH_SAFE_BIO() macro instead of G_RAID3_FOREACH_BIO() in
  two places where g_io_request() is called. g_io_request() can free bio
  structure so we can't reference it after and G_RAID3_FOREACH_BIO() macro
  was doing this.

  Found by:	Coverity Prevent analysis tool (with my new models)
2006-05-10 07:15:37 +00:00
..
2005-12-29 05:34:46 +00:00
2006-03-01 17:55:29 +00:00
2006-04-05 22:12:29 +00:00
2006-04-05 22:12:29 +00:00
2006-04-05 22:12:29 +00:00
2006-04-05 22:12:29 +00:00
2006-04-05 22:12:29 +00:00
2006-01-25 15:55:27 +00:00
2005-12-10 14:36:17 +00:00
2006-04-05 22:12:29 +00:00
2005-03-18 06:57:58 +00:00
2005-10-07 15:06:27 +00:00
2006-03-01 17:57:11 +00:00
2006-03-01 17:57:11 +00:00
2006-03-13 03:07:01 +00:00
2005-02-10 12:10:35 +00:00
2004-12-21 18:32:46 +00:00