]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFS: Clear key construction data if the idmap upcall fails
authorBryan Schumaker <bjschuma@netapp.com>
Thu, 9 Aug 2012 18:05:49 +0000 (14:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2012 17:00:16 +0000 (10:00 -0700)
commit797d03b980a559cd3312f7df3b41bb265cddcd8b
tree9ec5a190cf5d957a050835e07826dbfe4ed2df3a
parentf401b102e87f77b81c041a06f37e3f764ed1a8e7
NFS: Clear key construction data if the idmap upcall fails

commit c5066945b7ea346a11424dbeb7830b7d7d00c206 upstream.

idmap_pipe_downcall already clears this field if the upcall succeeds,
but if it fails (rpc.idmapd isn't running) the field will still be set
on the next call triggering a BUG_ON().  This patch tries to handle all
possible ways that the upcall could fail and clear the idmap key data
for each one.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Tested-by: William Dauchy <wdauchy@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/idmap.c