]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Update of VFS byte range lock must be atomic with the stateid update
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 24 Jan 2015 21:03:52 +0000 (16:03 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 24 Jan 2015 23:46:47 +0000 (18:46 -0500)
commit2cf1345968df31bc605e867cd87a649452881c65
tree71d512aef12f51603adce636bfe0412ceda450e9
parent96af1fbb8ec3c577159dee718090efc7330151f9
NFSv4: Update of VFS byte range lock must be atomic with the stateid update

Ensure that we test the lock stateid remained unchanged while we were
updating the VFS tracking of the byte range lock. Have the process
replay the lock to the server if we detect that was not the case.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c
include/linux/nfs_xdr.h