[DCCP]: fix theoretical ccids_{read,write}_lock() race
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 10 Aug 2007 22:21:17 +0000 (15:21 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 14 Aug 2007 05:52:09 +0000 (22:52 -0700)
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 <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found