cvs commit: src/sys/dev/md md.c

Pawel Jakub Dawidek pjd at
Sat Sep 3 09:02:38 PDT 2005

pjd         2005-09-03 16:02:37 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/dev/md           md.c 
  MFC:    sys/dev/md/md.c 1.155
  - 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 provoked by simple stress test.
  Tested by:      Kris The BugMagnet
  Approved by:    re (scottl)
  Revision   Changes    Path  +37 -25    src/sys/dev/md/md.c

More information about the cvs-src mailing list