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

[2.2] freebsd: spa taskq config fixes #15754

Conversation

robn
Copy link
Member

@robn robn commented Jan 11, 2024

Motivation and Context

#15753 reports zfs-2.2.3-staging doesn't compile. I screwed up backporting #15675 in #15695 and missed one change.

Closes #15753.

Description

Adds the missing change. Also backports #15719, which is approved and I was planning to backport as soon as it landed.

How Has This Been Tested?

Compile checked on Linux and FreeBSD.

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)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

@behlendorf
Copy link
Contributor

Thanks. Would you mind rebasing this and the 2.1 PR and applying the final commits from #15719. The code should be identical.

@behlendorf behlendorf added the Status: Accepted Ready to integrate (reviewed, tested) label Jan 12, 2024
robn and others added 3 commits January 13, 2024 10:20
sbuf_cpy() resets the sbuf state, which is wrong for sbufs allocated by
sbuf_new_for_sysctl().  In particular, this code triggers an assertion
failure in sbuf_clear().

Simplify by just using sysctl_handle_string() for both reading and
setting the tunable.

Fixes: 6930ecb ("spa: make read/write queues configurable")
Reviewed-by: Rob Norris <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reported-by: Peter Holm <[email protected]>
Signed-off-by: Mark Johnston <[email protected]>
Closes openzfs#15719
For FreeBSD sysctls, we don't want the extra newline, since the
sysctl(8) utility will format strings appropriately.

Reviewed-by: Rob Norris <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Reported-by: Peter Holm <[email protected]>
Signed-off-by: Mark Johnston <[email protected]>
Closes openzfs#15719
@robn robn force-pushed the freebsd-spa-taskq-config-compilefix-2.2 branch from d3cecbd to 1cd8927 Compare January 12, 2024 23:20
@robn
Copy link
Member Author

robn commented Jan 12, 2024

@behlendorf both done, ty.

@behlendorf behlendorf merged commit a00231a into openzfs:zfs-2.2.3-staging Jan 16, 2024
23 of 25 checks passed
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.

3 participants