]> git.baikalelectronics.ru Git - kernel.git/commit
LOCKD: fix races in nsm_client_get
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Oct 2012 17:51:58 +0000 (13:51 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 24 Oct 2012 14:46:22 +0000 (10:46 -0400)
commit75c02121c1b933af29d93f90ed024baa728f6d72
tree5c85033eae24348ec07dc9a0a3ddbb25141153bb
parentdd04d78be8786a370b4a307654f80382dca5f55c
LOCKD: fix races in nsm_client_get

Commit 194caaea3626222e4a8ff06b7b7f8424599c2498 (lockd: per-net
NSM client creation and destruction helpers introduced) contains
a nasty race on initialisation of the per-net NSM client because
it doesn't check whether or not the client is set after grabbing
the nsm_create_mutex.

Reported-by: Nix <nix@esperi.org.uk>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
fs/lockd/mon.c