From: Matt Carlson Date: Fri, 4 Nov 2011 09:15:04 +0000 (+0000) Subject: tg3: Eliminate timer race with reset_task X-Git-Tag: v3.2-rc1~4^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b1906241905d9bd1abe920854b3d43c2b9c85e1;p=pandora-kernel.git tg3: Eliminate timer race with reset_task During shutdown, it is impossible to reliably disable the timer and reset_task threads. Each thread can schedule the other, which leads to shutdown code that chases its tail. To fix the problem, this patch removes the ability of tg3_reset_task to schedule a new timer thread. To support this change, tg3_timer no longer terminates itself, but rather goes into a polling mode. Signed-off-by: Matt Carlson Reviewed-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed