]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
NFSv4/flexfiles: Use ds_commit_idx when marking a write commit
authorJonathan Curley <jcurley@purestorage.com>
Wed, 24 Sep 2025 16:20:43 +0000 (16:20 +0000)
committerAnna Schumaker <anna.schumaker@oracle.com>
Fri, 26 Sep 2025 19:30:20 +0000 (15:30 -0400)
Correct this path to use ds_commit_idx. Another noop preparation
change. In current code commit_idx == mirror_idx but when striping is
enabled that will not be true.

Signed-off-by: Jonathan Curley <jcurley@purestorage.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/write.c

index ad588ed59c09b9cdaccdfb8322e1686cd34a10b4..0fb6905736d51f6da455ab600b403968ee3fd120 100644 (file)
@@ -931,7 +931,7 @@ static void nfs_write_completion(struct nfs_pgio_header *hdr)
                        req->wb_nio = 0;
                        memcpy(&req->wb_verf, &hdr->verf.verifier, sizeof(req->wb_verf));
                        nfs_mark_request_commit(req, hdr->lseg, &cinfo,
-                               hdr->pgio_mirror_idx);
+                               hdr->ds_commit_idx);
                        goto next;
                }
 remove_req: