Re: [PATCH] NET : rt_check_expire() can take a long time, add a cond_resched()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Thursday, November 15, 2007 - 1:57 am

From: Eric Dumazet <dada1@cosmosbay.com>
Date: Thu, 15 Nov 2007 09:25:59 +0100


BTW, Eric, initially I was going to recommend that you do
something like:

	if ((goal % SOME_POWER_OF_2) == 0)
		cond_resched();

to mitigate this cost but decided it wasn't worth the bother.
-
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] NET : rt_check_expire() can take a long time, ..., David Miller, (Thu Nov 15, 1:57 am)