Whamcloud - gitweb
EX-7601 osc: rewrite compress_request
authorPatrick Farrell <pfarrell@whamcloud.com>
Tue, 28 Nov 2023 03:35:49 +0000 (22:35 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 30 Nov 2023 17:13:41 +0000 (17:13 +0000)
commit29f8d4dab192e73080df3b6f0f3c14fc05b30e75
treee818a4df551c5f6eddcfc6c01992edfb047651e0
parent94cb94fde1f270e6026dcffcddba40811772b9ee
EX-7601 osc: rewrite compress_request

The existing version of compress_request can't handle
discontiguous RPCs.  Rewrite the logic to handle this
case properly.

This also implements kms handling.

If a write chunks ends at the known minimum size, we know
this write is after all other data in the file and so
there is no compressed data under it.  This means we can
compress this chunk.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I8a912d9e279d04c8ff07de39e63a1ec9b490d921
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53111
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/osc/osc_compress.c