DragonFly commits List (threaded) for 2009-09
DragonFly BSD
DragonFly commits List (threaded) for 2009-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: USB - Avoid unnecessary reprobes.


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 6 Sep 2009 14:55:44 -0700 (PDT)

commit 9670bddac1b917ea3a748ff3769bc8728f3fc2d8
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]