mirror_zfs/module/zcommon
Rob Norris 6af8db61b1
metaslab: don't pass whole zio to throttle reserve APIs
They only need a couple of fields, and passing the whole thing just
invites fiddling around inside it, like modifying flags, which then
makes it much harder to understand the zio state from inside zio.c.

We move the flag update to just after a successful throttle in zio.c.

Rename ZIO_FLAG_IO_ALLOCATING to ZIO_FLAG_ALLOC_THROTTLED
Better describes what it means, and makes it look less like
IO_IS_ALLOCATING, which means something different.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17508
2025-07-04 23:22:22 -04:00
..
cityhash.c SPDX: license tags: MIT 2025-03-13 17:56:54 -07:00
simd_stat.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfeature_common.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs_comutil.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs_deleg.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs_fletcher_aarch64_neon.c SPDX: license tags: BSD-2-Clause OR GPL-2.0-only 2025-03-13 17:57:21 -07:00
zfs_fletcher_avx512.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs_fletcher_intel.c SPDX: license tags: BSD-2-Clause OR GPL-2.0-only 2025-03-13 17:57:21 -07:00
zfs_fletcher_sse.c SPDX: license tags: BSD-2-Clause OR GPL-2.0-only 2025-03-13 17:57:21 -07:00
zfs_fletcher_superscalar4.c SPDX: license tags: BSD-2-Clause OR GPL-2.0-only 2025-03-13 17:57:21 -07:00
zfs_fletcher_superscalar.c SPDX: license tags: BSD-2-Clause OR GPL-2.0-only 2025-03-13 17:57:21 -07:00
zfs_fletcher.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs_namecheck.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zfs_prop.c Relax special_small_blocks restrictions 2025-07-02 11:11:37 -07:00
zfs_valstr.c metaslab: don't pass whole zio to throttle reserve APIs 2025-07-04 23:22:22 -04:00
zpool_prop.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00
zprop_common.c SPDX: license tags: CDDL-1.0 2025-03-13 17:56:27 -07:00