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)
Mon, Nov 3, 9:44 PM
Unknown Object (File)
Fri, Oct 31, 12:33 PM
Unknown Object (File)
Fri, Oct 31, 4:22 AM
Unknown Object (File)
Wed, Oct 29, 10:58 AM
Unknown Object (File)
Wed, Oct 29, 10:54 AM
Unknown Object (File)
Wed, Oct 29, 9:55 AM
Unknown Object (File)
Wed, Oct 29, 9:38 AM
Unknown Object (File)
Tue, Oct 28, 10:17 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