10853 spa_sync, vs_alloc can underflow and checkpoint test fixes

Review Request #1815 — Created April 29, 2019 and submitted

jjelinek
illumos-gate
general

This is a port from ZoL of the following three fixes:
7558997 vs_alloc can underflow in L2ARC vdevs
8dc2197 Simplify spa_sync by breaking it up to smaller functions
db58794 Make zdb results for checkpoint tests consistent

zfs-test run

igork
  1. Ship It!
  2. 
      
kkantor
  1. Looks good to me! One possible linting nit (which other folks can debate. This looks like a good port, thanks.

  2. usr/src/uts/common/fs/zfs/vdev.c (Diff revision 1)
     
     

    I think danmcd mentioned once that smatch complains that this will be an empty if() block when built non-debug.

  3. 
      
jjelinek
Review request changed

Status: Closed (submitted)

Loading...