NFS: Fix an allocation-under-spinlock bug
commit53165f58afaf5045a52057f32b5b8dd67e90fe1c
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Mar 2010 18:06:22 +0000 (2 13:06 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 16:07:07 +0000 (15 09:07 -0700)
treeb29f6ae8b5ba8c789355bd1b9db45a2357241f19
parent1f2ba616b4a048ce7c4151fad1dbb92a8c93ac38
NFS: Fix an allocation-under-spinlock bug

commit ebed9203b68a4f333ce5d17e874b26c3afcfeff1 upstream.

sunrpc_cache_update() will always call detail->update() from inside the
detail->hash_lock, so it cannot allocate memory.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/dns_resolve.c