diff options
author | Mark Johnston <[email protected]> | 2023-12-29 10:22:58 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2024-01-16 11:32:19 -0800 |
commit | 9181e94f0b24e3459e1e9b6b2b096ff40b9461eb (patch) | |
tree | b559517fdd93d6488feb43189c6943381fa3cce8 /man | |
parent | 3bd23fd78dce7b5e3b76cce5a210a2977e1e05a8 (diff) |
spa: Fix FreeBSD sysctl handlers
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: 6930ecbb7 ("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 #15719
Diffstat (limited to 'man')
0 files changed, 0 insertions, 0 deletions