[PATCH] Unneeded memory barrier in net/irda code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jeff,

Patch against 2.6-test5 to remove 2 unneeded memory barriers when setting current to TASK_RUNNING.

Please consider applying.

Thanks,

Felipe
--- linux-2.6.0-test5/drivers/net/irda/sir_kthread.c.orig	2003-09-16 16:49:52.000000000 -0300
+++ linux-2.6.0-test5/drivers/net/irda/sir_kthread.c	2003-09-16 16:50:09.000000000 -0300
@@ -132,7 +132,7 @@
 		if (list_empty(&irda_rq_queue.request_list))
 			schedule();
 		else
-			set_task_state(current, TASK_RUNNING);
+			__set_task_state(current, TASK_RUNNING);
 		remove_wait_queue(&irda_rq_queue.kick, &wait);
 
 		/* make swsusp happy with our thread */
@@ -165,7 +165,7 @@
 		if (atomic_read(&irda_rq_queue.num_pending))
 			schedule();
 		else
-			set_task_state(current, TASK_RUNNING);
+			__set_task_state(current, TASK_RUNNING);
 		remove_wait_queue(&irda_rq_queue.done, &wait);
 	}
 }

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux