On Mon, Aug 22, 2005 at 12:20:13PM -0700, Christoph Lameter wrote: > We ran into the limit with the maximum number of waiters at one of our sites. > > This patch increases the number of possible waiters from 2^15 to 2^31 by using > a long for the counter in struct rw_semaphore.
Why not just change the BIAS value to 0x0010000? As long as you don't have more than 1024 processors trying to simultaneously acquire the same write lock (and if you do, you have other problems ...), this won't fail and gives you 2^19 waiters. -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
