Whamcloud - gitweb
EX-7601 obd: do not decompress empty lnbs
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 12 Dec 2023 20:54:37 +0000 (15:54 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 29 Dec 2023 10:59:22 +0000 (10:59 +0000)
commitd23b9aaec56948af5c31452497f2db9367384999
treef65ac24e6b749f3da3ddea32a0fc4c76aba67a70
parent07fa678a78ca81e8a3c31e8095988e491964a565
EX-7601 obd: do not decompress empty lnbs

For reads which cross EOF, we may get lnbs with no data in
them (similarly for writes which cross EOF).

For these cases, it's important to only copy from the lnbs
where there is data, and only do decompression on the lnbs
if there's actually data in them.

Modify merge chunk to do this.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I83fefcfa6d1396dcd97fad994334bf29438bb4bf
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53430
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/obdclass/lustre_compr.c
lustre/ofd/ofd_compress.c