Date: Fri, 16 May 2008 10:32:52 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/fdc fdc.c Message-ID: <200805161032.m4GAWq26085151@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kib 2008-05-16 10:32:52 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sys/dev/fdc fdc.c
Log:
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805161032.m4GAWq26085151>
