>Which makes me wonder, why did you ever use a semaphore here? Looking at >the code its a straight forward mutex. And when you would have used a >mutex lockdep would have warned about this. >There is hardly ever a good reason to use semaphores in new code, we're >trying very hard to get rid of them. The real issue here is the code path can not go to sleep. If simply replacing semaphore with mutex, the issue still happens. First of all we need to have a lock system which doesn't allow the code go to sleep. We are working on a new patch now. But one step back, if without considering this sleeping issue, I agree with you that mutex would be a better approach than semaphore. >Hmm, then again, does ia64 have lockdep? IA64 doesn't support lockdep yet. Thanks. -Fenghua -- To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Thu Mar 20 10:55:41 2008
This archive was generated by hypermail 2.1.8 : 2008-03-20 10:55:59 EST