* Eyal Cohen | 2013-05-09 11:46:11 [+0300]: >Hello. Hi, >All seems to work smoothly, except I'm getting a BUG "sleeping function >called from invalid context" print for calling "pci_unregister_driver()" >from my module exit function. >>From what I understand, the exit function is called from the rmmod >process, using a regular thread and should not be in atomic mode. >Therefore it should be able to acquire spinlocks without problem, since >it could sleep. >So why is this happening? My guess would be that you disabled interrupts somewhere in MPUExit(). Sebastian -- To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html