Re: driver spin lock and files_lock deadlock question

From: Al Viro
Date: Fri Dec 21 2007 - 02:18:31 EST


On Thu, Dec 20, 2007 at 10:59:20PM -0800, Srinivas Kommu wrote:

> It seems this kind of a deadlock can happen with any kernel lock, not
> just files_lock. What's the driver's mistake here? Is it wrong to call
> remove_proc_entry() while holding another lock? What is the right thing
> to do?

remove_proc_entry() is a blocking function...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/