* Alexander Zarochentsev <[email protected]> wrote:
> I think the txnh lock and the tmgr lock are _non_nested. [...]
ok - that's what the two changes i did do.
> [...] And, there is a place where two atom locks are taken in
> deadlock-free order w/o always keeping correct order of unlocking.
> The latest thing can be made lock-validator-friendly.
could you send a patch for that? When there is single-depth nesting of
two atom-locks then the annotation is easy, instead of:
spin_lock(&atom->alock);
you should do:
spin_lock_nested(&atom->alock, SINGLE_DEPTH_NESTING)
for the unordered unlocks, just change the one that is non-nested to
spin_unlock_non_nested(). (the second lock can stay spin_unlock() - that
will be in order again)
Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]