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)
Oct 3 2024, 11:25 AM
Unknown Object (File)
Oct 3 2024, 9:16 AM
Unknown Object (File)
Oct 1 2024, 2:13 PM
Unknown Object (File)
Sep 27 2024, 7:39 PM
Unknown Object (File)
Sep 24 2024, 10:39 PM
Unknown Object (File)
Sep 23 2024, 6:22 PM
Unknown Object (File)
Sep 23 2024, 4:32 PM
Unknown Object (File)
Sep 21 2024, 5:02 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