NFSv4.2: Fix a race in nfs42_proc_deallocate()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sat, 25 Jun 2016 21:50:53 +0000 (17:50 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 5 Jul 2016 23:11:07 +0000 (19:11 -0400)
commit1e564d3dbd684a105582471cb9ff2aada64a9052
treebab58a4d7ddb228f6eb7e891540e3bf017587f38
parent79566ef018f53a181f067afdf7bef9cc53f9d34b
NFSv4.2: Fix a race in nfs42_proc_deallocate()

When punching holes in a file, we want to ensure the operation is
serialised w.r.t. other writes, meaning that we want to call
nfs_sync_inode() while holding the inode lock.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs42proc.c