netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Unneeded memory barrier in net/irda code
@ 2003-09-16 19:53 Felipe W Damasio
  2003-09-20 17:57 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Felipe W Damasio @ 2003-09-16 19:53 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: irda-users, linux-net, netdev

[-- Attachment #1: Type: text/plain, Size: 158 bytes --]

	Hi Jeff,

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

	Please consider applying.

	Thanks,

Felipe

[-- Attachment #2: irda-mb.patch --]
[-- Type: text/plain, Size: 695 bytes --]

--- 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);
 	}
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-20 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-16 19:53 [PATCH] Unneeded memory barrier in net/irda code Felipe W Damasio
2003-09-20 17:57 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).