![]() | |||||||||||||
Messages in this thread Patch in this message |
On Sun, 2 Oct 2005, Mark Knecht wrote: > > The only problem I had over the last few days happened with > 2.6.14-rc2-rt7. One time, when attempting to shutdown, the machine > hung after the 'Unloading Alsa modules...[OK]' step. Acutally it may be the next step. Do you have pcmcia configured? I've been noticing that my system has been locking up on shutdown of the pcmcia. Ingo, here's the patch. This should probably go upstream too since it can happen there too. The pccardd thread has a race in it that it can shutdown in the TASK_INTERRUPTIBLE state. Here's the fix. -- Steve PS. Thanks for the info on quilt ;-) Index: linux-rt-quilt/drivers/pcmcia/cs.c =================================================================== --- linux-rt-quilt.orig/drivers/pcmcia/cs.c 2005-10-06 08:03:56.000000000 -0400 +++ linux-rt-quilt/drivers/pcmcia/cs.c 2005-10-06 12:48:02.000000000 -0400 @@ -689,6 +689,9 @@ schedule(); try_to_freeze(); } + /* make sure we are running before we exit */ + set_current_state(TASK_RUNNING); + remove_wait_queue(&skt->thread_wait, &wait); /* remove from the device core */ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2005-10-06 17:16 [from the cache] ©2003-2008 | |||||||||||||