git: USB - Avoid unnecessary reprobes.

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Sep 6 14:57:15 PDT 2009


commit 9670bddac1b917ea3a748ff3769bc8728f3fc2d8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Sep 6 14:53:51 2009 -0700

    USB - Avoid unnecessary reprobes.
    
    * Do not unconditionally setdiskinfo when a removable DA* device is
      opened.  It takes time for the kernel to reprobe the drive and this
      seriously messes up mountroot during kernel boot or attempts to
      access partitions in slices (instant open + access partition).
    
      If the size hasn't changed, do not call setdiskinfo again.
    
    * This is a bad hack.  A better solution (detect actual device
      replacement) is needed.

Summary of changes:
 sys/bus/cam/scsi/scsi_da.c |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9670bddac1b917ea3a748ff3769bc8728f3fc2d8


-- 
DragonFly BSD source repository





More information about the Commits mailing list