• R/O
  • HTTP
  • SSH
  • HTTPS

linux-2.4.36: Commit

2.4.36-stable kernel tree


Commit MetaInfo

Revisionbebd7ca873e8754072a2079e67a25edf453b940e (tree)
Zeit2008-04-17 15:35:59
AutorJesse Brandeburg <jesse.brandeburg@inte...>
CommiterWilly Tarreau

Log Message

[PATCH] ip-pnp-dhcp: wait lazily when doing dhcp for diskless systems

ic_dynamic() holds the cpu too long and tasks do not have a chance to run.
This causes adapters like e1000 that have the link come up in a tasklet to fail
link up due to exceptionally long delays in acquiring link, and then a dhcp
address.

Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>

Ändern Zusammenfassung

Diff

--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -1034,8 +1034,8 @@ static int __init ic_dynamic(void)
10341034
10351035 jiff = jiffies + (d->next ? CONF_INTER_TIMEOUT : timeout);
10361036 while (time_before(jiffies, jiff) && !ic_got_reply) {
1037- barrier();
1038- cpu_relax();
1037+ __set_current_state(TASK_UNINTERRUPTIBLE);
1038+ schedule_timeout(1);
10391039 }
10401040 #ifdef IPCONFIG_DHCP
10411041 /* DHCP isn't done until we get a DHCPACK. */
Show on old repository browser