kernel - Fix duplicate da0 or da* and locked up boot
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 21 Apr 2018 01:18:52 +0000 (18:18 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 21 Apr 2018 01:18:52 +0000 (18:18 -0700)
commit2ea825fba0b8639655b24ed30d20f69eeb1fb56d
treee267b36c40e3512bc40c15064df1b2488bf9bce0
parenta5d18315b411560ede0833ac792e9c8655e592b0
kernel - Fix duplicate da0 or da* and locked up boot

* Fix duplicate da* reporting at boot which usually results in
  the boot locking up.

* The diskinfo was being installed while before CAM's softc->state
  normalized, potentially allowing I/O to occur during the probe
  sequence and causing the probe state to be repeated.

  Delay calling disk_setdiskinfo() until after softc->state is
  normalized.
sys/bus/cam/scsi/scsi_cd.c
sys/bus/cam/scsi/scsi_da.c