Whamcloud - gitweb
EX-7601 tgt: add remote_pages for writes
authorPatrick Farrell <pfarrell@whamcloud.com>
Thu, 2 Nov 2023 21:49:00 +0000 (17:49 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 29 Dec 2023 11:01:30 +0000 (11:01 +0000)
commit217341228fc517851738c1d6631e8f409430c700
treeacfa6e0a77b91c9c9e893292836d444d3c2caeb5
parente8d1cfd5aa4a68d3830455356f50e0e6d8437d92
EX-7601 tgt: add remote_pages for writes

When we round a write to get all of the compressed chunks,
the number of local and the number of remote pages will
differ.  We need to make sure we do the checksum and data
transfer using the number of remote pages, not the number of
local pages.

This patch calculates the number of remote pages and uses it
accordingly.

Note that just like on the read side, this patch doesn't do
anything until we're actually rounding the chunks for IO in
a later patch.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I38256070d68246613ce67b0bfe328f6443a95533
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52964
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Artem Blagodarenko <ablagodarenko@ddn.com>
lustre/target/tgt_handler.c