]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 25 May 2021 14:40:12 +0000 (10:40 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 26 May 2021 10:36:13 +0000 (06:36 -0400)
commitd68fbe5a07e91629de877c80238b1e233aa0ee59
tree93490556fc5df28dbfcf9280132435b8f4e2796e
parent9ee1bdf27b410a77b9cb94ad60f174239bce1b36
NFS: Don't corrupt the value of pg_bytes_written in nfs_do_recoalesce()

The value of mirror->pg_bytes_written should only be updated after a
successful attempt to flush out the requests on the list.

Fixes: 83640929b2ca ("nfs: add mirroring support to pgio layer")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pagelist.c