On Wed, 2008-07-23 at 13:14 -0700, David Miller wrote:
If you think its OK to take USHORT_MAX locks at once, I'm afraid we'll
have to agree to disagree :-/
Thing is, lockdep wants to be able to describe the locking hierarchy
with classes, and each class needs to be in static storage for various
reasons.
So if you make a locking hierarchy that is USHORT_MAX deep, you need at
least that amount of static classes.
Also, you'll run into the fact that lockdep will only track like 48 held
locks, after that it self terminates.
I'm aware of only 2 sites in the kernel that break this limit. The
down-side of stretching this limit is that deep lock chains come with
costs (esp so on -rt), so I'm not particularly eager to grow this - it
might give the impresssion its a good idea to have very long lock
chains.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html