HomeFreeBSD

Optimize arc_l2c_only lists assertions

Description

Optimize arc_l2c_only lists assertions

It is very expensive and not informative to call multilist_is_empty()
for each arc_change_state() on debug builds to check for impossible.
Instead implement special index function for arc_l2c_only->arcs_list,
multilists, panicking on any attempt to use it.

Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Closes #12421

Details

Provenance
mavAuthored on Aug 17 2021, 3:55 PM
Tony Hutter <hutter2@llnl.gov>Committed on Sep 14 2021, 9:31 PM
Parents
rG40e02f49e9e6: Fix/improve dbuf hits accounting
Branches
Unknown
Tags
Unknown

Event Timeline