ZIL: Remove 128K into 2x68K LWB split optimization
commit2aa3a482abe31bf41d97bd028507b69029515698
authorAlexander Motin <mav@FreeBSD.org>
Wed, 6 Dec 2023 23:02:05 +0000 (6 18:02 -0500)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2023 23:02:05 +0000 (6 15:02 -0800)
treef54322016f362bc30ce7b78474d1b7d53d9831ef
parentf9765b182eae1d031aa6559b22688329fff90fba
ZIL: Remove 128K into 2x68K LWB split optimization

To improve 128KB block write performance in case of multiple VDEVs
ZIL used to spit those writes into two 64KB ones.  Unfortunately it
was found to cause LWB buffer overflow, trying to write maximum-
sizes 128KB TX_CLONE_RANGE record with 1022 block pointers into
68KB buffer, since unlike TX_WRITE ZIL code can't split it.

This is a minimally-invasive temporary block cloning fix until the
following more invasive prediction code refactoring.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #15634
module/zfs/zil.c