projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd86128
)
[PATCH] tty: remove useless memory barrier
author
Ralf Baechle
<
[email protected]
>
Wed, 13 Dec 2006 08:34:57 +0000
(
00:34
-0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 13 Dec 2006 17:05:52 +0000
(09:05 -0800)
I don't see why there is a memory barrier in copy_from_read_buf() at all.
Even if it was useful spin_unlock_irqrestore implies a barrier.
Signed-off-by: Ralf Baechle <
[email protected]
>
Cc: Alan Cox <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/n_tty.c
patch
|
blob
|
history
diff --git
a/drivers/char/n_tty.c
b/drivers/char/n_tty.c
index e96a00fe13891b6f5f9fae1b2e1e6f1054d37956..2bdb0144a22e3f0b4d8675826bdd0ea353ac3079 100644
(file)
--- a/
drivers/char/n_tty.c
+++ b/
drivers/char/n_tty.c
@@
-1151,7
+1151,6
@@
static int copy_from_read_buf(struct tty_struct *tty,
n = min(*nr, n);
spin_unlock_irqrestore(&tty->read_lock, flags);
if (n) {
- mb();
retval = copy_to_user(*b, &tty->read_buf[tty->read_tail], n);
n -= retval;
spin_lock_irqsave(&tty->read_lock, flags);