Skip to content

Commit

Permalink
Fix assertion in Persistent L2ARC
Browse files Browse the repository at this point in the history
At the end of l2arc_evict() fix an assertion in the case that l2ad_hand
+ distance == l2ad_end.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Amanakis <gamanakis@gmail.com>
Closes openzfs#16202
Closes openzfs#16207
  • Loading branch information
gamanakis authored and ixhamza committed Jun 13, 2024
1 parent e4631d0 commit a4943a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8890,7 +8890,7 @@ l2arc_evict(l2arc_dev_t *dev, uint64_t distance, boolean_t all)
* assertions may be violated without functional consequences
* as the device is about to be removed.
*/
ASSERT3U(dev->l2ad_hand + distance, <, dev->l2ad_end);
ASSERT3U(dev->l2ad_hand + distance, <=, dev->l2ad_end);
if (!dev->l2ad_first)
ASSERT3U(dev->l2ad_hand, <=, dev->l2ad_evict);
}
Expand Down

0 comments on commit a4943a2

Please sign in to comment.