K 10 svn:author V 4 jeff K 8 svn:date V 27 2007-10-02T01:30:18.000000Z K 7 svn:log V 444 - Reassign the thread queue lock to newtd prior to switching. Assigning after the switch leads to a race where the outgoing thread still owns the local queue lock while another cpu may switch it in. This race is only possible on machines where cpu_switch can take significantly longer on different cpus which in practice means HTT machines with unfair thread scheduling algorithms. Found by: kris (of course) Approved by: re END