Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lz4_decompress_abd declared but not defined #8894

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

ahrens
Copy link
Member

@ahrens ahrens commented Jun 12, 2019

Motivation and Context

lz4_decompress_abd is declared in zio_compress.h but it is not defined
anywhere.

Description

The declaration should be removed.

External-issue: DLPX-47477

How Has This Been Tested?

compiled

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

`lz4_decompress_abd` is declared in zio_compress.h but it is not defined
anywhere. The declaration should be removed.

External-issue: DLPX-47477
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
@ahrens ahrens added the Status: Code Review Needed Ready for review and testing label Jun 12, 2019
@kithrup
Copy link
Contributor

kithrup commented Jun 12, 2019

This is a trivial change -- removing the unneeded prototype. Build testing is the only possible test for this ;).

@allanjude
Copy link
Contributor

when i stumbled over this 2 weeks ago I had really hoped Delphix had a version of lz4 that could read ABDs and had just forgotten to upstream it.

@behlendorf
Copy link
Contributor

@allanjude if I recall correctly, that was functionality we wanted to add but haven't gotten to quite yet.

@ahrens
Copy link
Member Author

ahrens commented Jun 13, 2019

FWIW, there was an ABD-aware lz4 decompress algorithm, but it was an unoptimized implementation and was much much slower than bcopy+lz4, so we abandoned it. Subsequent benchmarking has shown that the amount of performance that can be gained by avoiding the bcopy (i.e. bcopy+lz4 decompress vs just lz4 decompress) is minimal (<10% IIRC). The bcopy doesn't cost that much if you have to access the memory anyway - probably because once you bcopy, lz4 isn't touching main memory, it's getting everything from the on-CPU L3 cache.

@codecov
Copy link

codecov bot commented Jun 13, 2019

Codecov Report

Merging #8894 into master will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8894      +/-   ##
==========================================
+ Coverage   78.75%    78.8%   +0.05%     
==========================================
  Files         382      382              
  Lines      117818   117808      -10     
==========================================
+ Hits        92787    92839      +52     
+ Misses      25031    24969      -62
Flag Coverage Δ
#kernel 79.37% <ø> (+0.12%) ⬆️
#user 67.37% <ø> (+0.28%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9b4bf0...6ca258f. Read the comment docs.

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Jun 13, 2019
@behlendorf behlendorf merged commit 7218b29 into openzfs:master Jun 13, 2019
@ahrens ahrens deleted the DLPX-47477 branch June 13, 2019 20:15
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Aug 13, 2019
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined
anywhere. The declaration should be removed.

Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
External-issue: DLPX-47477
Closes openzfs#8894
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Aug 22, 2019
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined
anywhere. The declaration should be removed.

Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
External-issue: DLPX-47477
Closes openzfs#8894
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Aug 23, 2019
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined
anywhere. The declaration should be removed.

Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
External-issue: DLPX-47477
Closes openzfs#8894
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Sep 17, 2019
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined
anywhere. The declaration should be removed.

Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
External-issue: DLPX-47477
Closes openzfs#8894
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Sep 18, 2019
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined
anywhere. The declaration should be removed.

Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
External-issue: DLPX-47477
Closes openzfs#8894
tonyhutter pushed a commit that referenced this pull request Sep 26, 2019
`lz4_decompress_abd` is declared in zio_compress.h but it is not defined
anywhere. The declaration should be removed.

Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed-by: Allan Jude <allanjude@freebsd.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matthew Ahrens <mahrens@delphix.com>
External-issue: DLPX-47477
Closes #8894
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants