netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe W Damasio <felipewd@terra.com.br>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: irda-users@lists.sourceforge.net, linux-net@vger.kernel.org,
	netdev@oss.sgi.com
Subject: [PATCH] Unneeded memory barrier in net/irda code
Date: Tue, 16 Sep 2003 16:53:42 -0300	[thread overview]
Message-ID: <3F676A46.2000304@terra.com.br> (raw)

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

             reply	other threads:[~2003-09-16 19:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-16 19:53 Felipe W Damasio [this message]
2003-09-20 17:57 ` [PATCH] Unneeded memory barrier in net/irda code Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F676A46.2000304@terra.com.br \
    --to=felipewd@terra.com.br \
    --cc=irda-users@lists.sourceforge.net \
    --cc=jgarzik@pobox.com \
    --cc=linux-net@vger.kernel.org \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).