Page MenuHomeFreeBSD

zfs: Avoid updating the L2ARC device header unnecessarily
ClosedPublic

Authored by mm on Mon, Feb 15, 8:15 AM.

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
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.