Uhm, I disagree. "Am I holding this lock" is always true on UP. "Is
someone else holding this lock" is always false. "Am I holding this lock"
also isn't the same as spin_is_locked on SMP since you want to look at
who's holding it when debugging is enabled. Same goes for "Is someone
else holding this lock".
> No matter what constant answer you decide to give on UP it will always
> be incorrect. I know, because there were old bits of assertions in
You're right. But no-one actually cares about whether a lock is held -
they care about whether they're holding it or someone else is holding it
or no-one's holding it.
Philipp
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/