git: DragonFly_RELEASE_6_4 kernel - Fix I/O stalls caused by TRIM ops

Aaron LI aly at crater.dragonflybsd.org
Thu Nov 12 23:21:42 PST 2026


commit 29fcc2330b7c2fe5db66c56cbce878bcf84dc2f9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Oct 23 16:44:56 2026 -0700

    kernel - Fix I/O stalls caused by TRIM ops
    
    * I/O can stall out in physstr when TRIM ops are delpoyed.  The
      cause is that the da_softc->outstanding_cmds_rd tracker used by
      the I/O balancer was decrementing the field on TRIM completions.
    
    * Fix by ensuring that the tracker only applies to READ commands.
    
    * Refactor scheduling checks in dastart().  The checks were a bit broken
      but worked due to a catch-all in dadone().  Refactor so they work properly.
    
    * Refactor conditional/block syntax a bit for readability.
    
    Reported-by: myself and numerous others

Summary of changes:
 sys/bus/cam/scsi/scsi_da.c | 82 ++++++++++++++++++++++++++++------------------
 1 file changed, 51 insertions(+), 31 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/29fcc2330b7c2fe5db66c56cbce878bcf84dc2f9


-- 
DragonFly BSD source repository


More information about the Commits mailing list