Skip to content
Commit 0e24d849 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 62d98c93
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment