Commit:     34f8f0a5e953d3e40c4419e5e5c4b6fd14f7ebf2
Parent:     cd86128088554d64fea1679191509f00e6353c5b
Author:     Ralf Baechle <[EMAIL PROTECTED]>
AuthorDate: Wed Dec 13 00:34:57 2006 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed Dec 13 09:05:52 2006 -0800

    [PATCH] tty: remove useless memory barrier
    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 |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/char/n_tty.c b/drivers/char/n_tty.c
index e96a00f..2bdb014 100644
--- 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);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to