NFSv4/flexfiles: Use ds_commit_idx when marking a write commit
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>
This commit is contained in:
committed by
Anna Schumaker
parent
fec80afc41
commit
eb71428e1a
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user