HomeFreeBSD

da: Update trim stats for WRITE SAME and ATA TRIM

Description

da: Update trim stats for WRITE SAME and ATA TRIM

The scsi UNMAP path updated trim stats in the da sysctl, but the ATA
TRIM passthru and WRITE SAME paths did not. Add code so they do.

PR: 277637
Reviewed by: imp (tweaked WS path to update ranges)

(cherry picked from commit 12117d0e9314d1706508386c1c49ace2de578b31)

Details

Provenance
mgrooms_shrew.netAuthored on May 3 2024, 2:41 PM
impCommitted on May 20 2024, 7:23 PM
Parents
rG5dd6fb108dd9: stand: Spell LUA_COMPILE_SET correctly.
Branches
Unknown
Tags
Unknown