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

Konstantin Belousov kib at
Fri May 16 10:32:52 UTC 2008

kib         2008-05-16 10:32:52 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/dev/fdc          fdc.c 
  MFC rev. 1.320:
  The wakeup() line from the rev. 1.319 is wrong and reintroduces
  a panic race on module unload. The wakeup() is internal to
  kproc_exit/kthread_exit. The correct fix is to fix the msleep() in
  detach to sleep on fdc->fdc_thread instead of &fdc->fdc_thread.
  MFC rev. 1.319:
  Wakeup the thread doing the fdc_detach() when the fdc worker thread exits [1].
  Write access to the write-protected floppy shall call device_unbusy() to
  pair the device_busy() in the fd_access() [2].
  PR:     116537 [1], 116539 [2]
  Revision   Changes    Path
  1.307.2.5  +8 -2      src/sys/dev/fdc/fdc.c

More information about the cvs-src mailing list