LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Does ata_exec_internal_sg sleep? (https://www.linuxquestions.org/questions/linux-kernel-70/does-ata_exec_internal_sg-sleep-717887/)

coopci 04-09-2009 03:41 AM

Does ata_exec_internal_sg sleep?
 
I'm comparing the sata portion of various Operating Systems. There's something I can not sure about ata_exec_internal_sg. When this function is going to use an ata port, it accquires a spin lock. This seems very different from FreeBSD and OpenSolaris since the two both spin first and then sleep. I did not find spin_lock_irqsave involvle any sleep possibility. Moreover, the comment says that this function "might sleep", does it exclusively mean wait_for_completion_timeout?


All times are GMT -5. The time now is 09:44 AM.