diff options
author | mav <mav@FreeBSD.org> | 2014-10-20 07:52:48 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-10-20 07:52:48 +0000 |
commit | a0796a04ee35c3f816e1cf2ecc9a0a3ad56f54f8 (patch) | |
tree | df4f6231cb274bbd32cae3d230d25eeba2e1a366 | |
parent | b61a1b57066a1970646c5aaa2208f8d6ef5f387d (diff) | |
download | FreeBSD-src-a0796a04ee35c3f816e1cf2ecc9a0a3ad56f54f8.zip FreeBSD-src-a0796a04ee35c3f816e1cf2ecc9a0a3ad56f54f8.tar.gz |
MFC r272935: Mark CTL frontend's CAM driver as CAM_PERIPH_DRV_EARLY.
Target mode operation does not depend on the initiator mode scan process.
This change allows the target driver to attach earlier and receive some
async events (like AC_CONTRACT) that could be lost otherwise.
-rw-r--r-- | sys/cam/ctl/scsi_ctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/ctl/scsi_ctl.c b/sys/cam/ctl/scsi_ctl.c index 9347ed1..fee5f4c 100644 --- a/sys/cam/ctl/scsi_ctl.c +++ b/sys/cam/ctl/scsi_ctl.c @@ -224,7 +224,8 @@ static void ctlfe_dump(void); static struct periph_driver ctlfe_driver = { ctlfeperiphinit, "ctl", - TAILQ_HEAD_INITIALIZER(ctlfe_driver.units), /*generation*/ 0 + TAILQ_HEAD_INITIALIZER(ctlfe_driver.units), /*generation*/ 0, + CAM_PERIPH_DRV_EARLY }; static struct ctl_frontend ctlfe_frontend = |