freebsd-dev/sys/dev/md
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
..
md.c - Add md_mtx lock to protect ID number and list of devices. 2005-08-31 19:45:11 +00:00