]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NFS: Fix an allocation-under-spinlock bug
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Mar 2010 18:06:22 +0000 (13:06 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:50:14 +0000 (08:50 -0700)
commitf70813429191d72bac1935d43a295ac879024ea0
treeb93893ae9f600281a2affdba8a3d4c252f95a6e7
parentb8e5ba11fc04af9ec6fe2f9e94026a77f52a0328
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