Commit:     d725fdc8027a4cd961f58d92917fbb91b171abfa
Parent:     b5890d8ba47741425fe3c0d753e1b57bc0561b7b
Author:     Oleg Nesterov <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 10 15:21:17 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Aug 13 22:52:09 2007 -0700

    [DCCP]: fix theoretical ccids_{read,write}_lock() race
    Make sure that spin_unlock_wait() is properly ordered wrt atomic_inc().
    (akpm: can't we convert this code to use rwlocks?)
    Signed-off-by: Oleg Nesterov <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/dccp/ccid.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/dccp/ccid.c b/net/dccp/ccid.c
index ccbf72c..c45088b 100644
--- a/net/dccp/ccid.c
+++ b/net/dccp/ccid.c
@@ -40,6 +40,7 @@ static inline void ccids_write_unlock(void)
 static inline void ccids_read_lock(void)
+       smp_mb__after_atomic_inc();
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