NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()
stable inclusion from stable-5.10.42 commit 7087db95c0a06ab201b8ebfac6a7ec1e34257997 bugzilla: 55093 CVE: NA -------------------------------- commit 0d0ea309 upstream. The value of mirror->pg_bytes_written should only be updated after a successful attempt to flush out the requests on the list. Fixes: a7d42ddb ("nfs: add mirroring support to pgio layer") Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.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
想要评论请 注册 或 登录