NFSv4: Fix a race when updating an open_stateid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 22 Sep 2016 17:39:13 +0000 (13:39 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 27 Sep 2016 18:35:00 +0000 (14:35 -0400)
commit1393d9612ba02d8bb8dae1dab319807e92354fe3
treeac86090ed9e1071285e875ecc16503c5c3fe62fc
parentb1a318de9bc4946ad4a20481ab3ce28c2e8cd72c
NFSv4: Fix a race when updating an open_stateid

If we're replacing an old stateid which has a different 'other' field,
then we probably need to free the old stateid.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Tested-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c