Date: Sat, 22 Sep 2007 13:02:21 +0800 (KRAST) From: Eugene Grosbein <eugen@grosbein.pp.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/116537: [fdc] [patch] kldunload fdc.ko locks forever due to missing wakeup() Message-ID: <200709220502.l8M52Lfb001876@grosbein.pp.ru> Resent-Message-ID: <200709220520.l8M5K1EL064414@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 116537 >Category: kern >Synopsis: [fdc] [patch] kldunload fdc.ko locks forever due to missing wakeup() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 22 05:20:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 6.2-STABLE i386 >Organization: Svyaz-Service JSC >Environment: System: FreeBSD grosbein.pp.ru 6.2-STABLE FreeBSD 6.2-STABLE #2: Sun Sep 16 16:54:23 KRAST 2007 eu@grosbein.pp.ru:/home/obj/usr/local/src/sys/DADV i386 >Description: An attempt to unload kernel module fdc.ko results in kldunload waiting forever in state 'fdcdet'. >How-To-Repeat: kldunload fdc.ko >Fix: --- sys/dev/fdc/fdc.c.orig 2007-09-15 16:53:23.000000000 +0800 +++ sys/dev/fdc/fdc.c 2007-09-16 16:26:07.000000000 +0800 @@ -1195,6 +1198,7 @@ mtx_lock(&fdc->fdc_mtx); } fdc->flags &= ~(FDC_KTHREAD_EXIT | FDC_KTHREAD_ALIVE); + wakeup(&fdc->fdc_thread); mtx_unlock(&fdc->fdc_mtx); kthread_exit(0); >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709220502.l8M52Lfb001876>