Pawel Jakub Dawidek 7ee3c044d0 - Add md_mtx lock to protect ID number and list of devices.
- Always check mdnew() return value, as even in !autounit case
  kthread_create() can fail.

Those two changes fix serval panics provked by simple stress test.

Tested by:	Kris The BugMagnet
MFC after:	3 days
2005-08-31 19:45:11 +00:00
..
2005-08-08 19:39:58 +00:00
2005-08-26 02:21:02 +00:00
2005-05-10 12:02:18 +00:00
2005-08-29 18:45:21 +00:00
2005-08-30 05:24:53 +00:00
2005-08-29 00:05:04 +00:00
2005-08-27 16:07:12 +00:00
2005-05-14 10:26:31 +00:00
2005-07-29 00:20:50 +00:00
2004-08-02 20:42:28 +00:00
2005-08-21 09:52:18 +00:00
2004-08-04 18:30:31 +00:00
2005-05-19 21:16:50 +00:00
2005-04-08 05:22:58 +00:00
2005-02-27 22:01:09 +00:00
2005-08-29 20:06:02 +00:00
2005-08-10 03:56:31 +00:00