]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Mar 2010 18:06:22 +0000 (13:06 -0500)
commitebed9203b68a4f333ce5d17e874b26c3afcfeff1
treeec0c24396061eb662594a3b879acc760e41532b7
parent9fcfe0c83c3b04a759cde6b8c5f961237f17808b
NFS: Fix an allocation-under-spinlock bug

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>
Cc: stable@kernel.org
fs/nfs/dns_resolve.c