From: Trond Myklebust Date: Fri, 28 Sep 2012 16:03:09 +0000 (-0400) Subject: NFSv4: Remove BUG_ON() and ACCESS_ONCE() calls in the idmapper X-Git-Tag: v3.7-rc1~58^2~31^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e24d849c4ea777c59955b241fd3af14a1b84af5;p=pandora-kernel.git NFSv4: Remove BUG_ON() and ACCESS_ONCE() calls in the idmapper The use of ACCESS_ONCE() is wrong, since the various routines that set/clear idmap->idmap_key_cons should be strictly ordered w.r.t. each other, and the idmap->idmap_mutex ensures that only one thread at a time may be in an upcall situation. Also replace the BUG_ON()s with WARN_ON_ONCE() where appropriate. Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed