]> git.baikalelectronics.ru Git - kernel.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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Aug 2012 21:20:02 +0000 (17:20 -0400)
commit80e14d110505733425fd6031e636e0b0f77ecfc8
treeb1417785e3681769def7bb571d9520a2b60f0f22
parentd97ca7c3343e1f4c44d689fd0728b79c41b45457
NFS: Clear key construction data if the idmap upcall fails

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>
Cc: stable@vger.kernel.org [>= 3.4]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/idmap.c