[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1326909016.4910.19.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>
Date: Wed, 18 Jan 2012 18:50:16 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Flavio Leitner <fbl@...hat.com>
Cc: netdev <netdev@...r.kernel.org>,
Marcelo Leitner <mleitner@...hat.com>
Subject: Re: bind()/inet_csk_get_port() fails when no port is requested
Le mercredi 18 janvier 2012 à 18:36 +0100, Eric Dumazet a écrit :
> Only drawback is when table is really full, we'll scan it twice.
>
We should at least add a local_bh_enable() and cond_resched() and jump
to beginning of inet_csk_get_port() to allow pending softirqs/rescheds
to be handled at half way.
if (!check_conflict) {
check_conflict = true;
local_bh_enable();
cond_resched();
goto start;
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists