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
F165584211: D28682.id83919.diff
Sat, Aug 8, 5:53 PM
F165491226: D28682.id83914.diff
Sat, Aug 8, 10:35 AM
F165471194: D28682.diff
Sat, Aug 8, 9:16 AM
Unknown Object (File)
Fri, Aug 7, 5:33 PM
Unknown Object (File)
Fri, Aug 7, 4:22 PM
Unknown Object (File)
Fri, Aug 7, 1:44 PM
Unknown Object (File)
Thu, Aug 6, 2:45 PM
Unknown Object (File)
Thu, Aug 6, 9:18 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