LOCKD: Clear ln->nsm_clnt only when ln->nsm_users is zero
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 24 Oct 2012 12:53:35 +0000 (08:53 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 24 Oct 2012 14:46:22 +0000 (10:46 -0400)
commite498daa81295d02f7359af313c2b7f87e1062207
tree0136f271daecc366e6ad701fc275822e170f8dc9
parenta4ee8d978e47e79d536226dccb48991f70091168
LOCKD: Clear ln->nsm_clnt only when ln->nsm_users is zero

The current code is clearing it in all cases _except_ when zero.

Reported-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: stable@vger.kernel.org
fs/lockd/mon.c