Page MenuHomeFreeBSD

zfs: Avoid updating the L2ARC device header unnecessarily
ClosedPublic

Authored by mm on Feb 15 2021, 8:15 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 28, 3:40 PM
Unknown Object (File)
Thu, Nov 27, 9:37 AM
Unknown Object (File)
Nov 18 2025, 10:41 AM
Unknown Object (File)
Nov 16 2025, 5:01 AM
Unknown Object (File)
Nov 16 2025, 2:00 AM
Unknown Object (File)
Nov 3 2025, 9:44 PM
Unknown Object (File)
Oct 31 2025, 12:33 PM
Unknown Object (File)
Oct 31 2025, 4:22 AM
Subscribers

Details

Summary

From openzfs 0ae184a6baaf71e155e9b19af81b75474622ff58 commit message:

If we do not write any buffers to the cache device and the evict hand
has not advanced do not update the cache device header.

Cherry-picked from openzfs master 0ae184a6b

MFC after: 3 days

This prevents zfs from continously writing to l2arc on an idle system.
Fix relevant for 13.0-RELEASE

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable