NFSv4.2: Always flush out writes in nfs42_proc_fallocate()
stable inclusion from stable-5.10.38 commit cbc868ea28a8db2daab63cfb4d8c08ccafda5c10 bugzilla: 51875 CVE: NA -------------------------------- [ Upstream commit 99f23783 ] Whether we're allocating or delallocating space, we should flush out the pending writes in order to avoid races with attribute updates. Fixes: 1e564d3d ("NFSv4.2: Fix a race in nfs42_proc_deallocate()") Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录