USB - Avoid unnecessary reprobes.
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 6 Sep 2009 21:53:51 +0000 (14:53 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 6 Sep 2009 21:53:51 +0000 (14:53 -0700)
commit9670bddac1b917ea3a748ff3769bc8728f3fc2d8
treef137839183beb32c23d1d752e5c47c950580a842
parentd9f18464fcfea381d99b5422e490ee1cddc97e6f
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.
sys/bus/cam/scsi/scsi_da.c