NFSv4: Clean up the legacy idmapper upcall
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 27 Sep 2012 19:44:19 +0000 (15:44 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2012 17:42:41 +0000 (13:42 -0400)
Replace the BUG_ON(idmap->idmap_key_cons != NULL) with a
WARN_ON_ONCE(). Then get rid of the ACCESS_ONCE(idmap->idmap_key_cons).

Then add helper functions for starting, finishing and aborting the
legacy upcall.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Bryan Schumaker <bjschuma@netapp.com>
fs/nfs/idmap.c

diff --cc fs/nfs/idmap.c
Simple merge