summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-04-30 20:43:42 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-12 00:54:10 +0400
commit76e7f478a400a76a37a05848cc2e9263e0d0cb40 (patch)
tree69a0fbd8caa5de771223f8477f0c38c3c25efcd3 /net/lapb/lapb_subr.c
parent5a3f1f30a22ab33f948f0c4a6d56fc7cc5df5199 (diff)
downloadlinux-76e7f478a400a76a37a05848cc2e9263e0d0cb40.tar.xz
NFSv4.x: Fix handling of partially delegated locks
commit c5a2a15f8146fdfe45078df7873a6dc1006b3869 upstream. If a NFS client receives a delegation for a file after it has taken a lock on that file, we can currently end up in a situation where we mistakenly skip unlocking that file. The following patch swaps an erroneous check in nfs4_proc_unlck for whether or not the file has a delegation to one which checks whether or not we hold a lock stateid for that file. Reported-by: Chuck Lever <Chuck.Lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Tested-by: Chuck Lever <Chuck.Lever@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions