From: David Howells Date: Tue, 17 Jan 2012 20:39:40 +0000 (+0000) Subject: KEYS: Add missing smp_rmb() primitives to the keyring search code X-Git-Tag: v3.3-rc1~22^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efde8b6e16f11e7d1681c68d86c7fd51053cada7;p=pandora-kernel.git KEYS: Add missing smp_rmb() primitives to the keyring search code Add missing smp_rmb() primitives to the keyring search code. When keyring payloads are appended to without replacement (thus using up spare slots in the key pointer array), an smp_wmb() is issued between the pointer assignment and the increment of the key count (nkeys). There should be corresponding read barriers between the read of nkeys and dereferences of keys[n] when n is dependent on the value of nkeys. Signed-off-by: David Howells Reviewed-by: Paul E. McKenney Signed-off-by: James Morris --- Reading git-diff-tree failed