commit | cbc868ea28a8db2daab63cfb4d8c08ccafda5c10 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <trond.myklebust@hammerspace.com> | Sun Mar 28 18:17:14 2021 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed May 19 10:13:02 2021 +0200 |
tree | 9800d2204f5ce843c9be9807b5dc005655ddfba3 | |
parent | a09afbb63620e9e36fd2a0c1536fb5a93be99c8f [diff] |
NFSv4.2: Always flush out writes in nfs42_proc_fallocate() [ Upstream commit 99f23783224355e7022ceea9b8d9f62c0fd01bd8 ] Whether we're allocating or delallocating space, we should flush out the pending writes in order to avoid races with attribute updates. Fixes: 1e564d3dbd68 ("NFSv4.2: Fix a race in nfs42_proc_deallocate()") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>