[patch]usbfs micro optimitation

Oliver Neukum <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hi,

the memory barrier is needed only with smp.

	Regards
		Oliver
Signed-off-by: Oliver Neukum <[email protected]>
----

--- a/drivers/usb/core/devio.c	2007-04-20 20:20:29.000000000 +0200
+++ b/drivers/usb/core/devio.c	2007-04-20 20:27:45.000000000 +0200
@@ -581,7 +581,7 @@ static int usbdev_open(struct inode *ino
 	ps->disccontext = NULL;
 	ps->ifclaimed = 0;
 	security_task_getsecid(current, &ps->secid);
-	wmb();
+	smp_wmb();
 	list_add_tail(&ps->list, &dev->filelist);
 	file->private_data = ps;
  out:

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.