Re: Q. locking order of dcache_lru_lock

From: Peter Zijlstra
Date: Sat Apr 09 2011 - 13:12:29 EST


On Fri, 2011-04-08 at 22:20 +0900, J. R. Okajima wrote:
>
> When spin_trylock(&dentry->d_lock) successfully acquired d_lock, does
> the violation of locking order happen (or a deadlock, in worse case)?

No, since a trylock never actually blocks a deadlock cannot occur.
--
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/