From b57c214bcc798094ac9d02b7cd0fb77213049fe7 Mon Sep 17 00:00:00 2001 From: ken Date: Sun, 31 Oct 1999 02:39:44 +0000 Subject: Fix Bus Device Resets from userland, and specifically from camcontrol. camcontrol was setup to use the old scheme of going through the xpt(4) device, which never worked properly (and has been disabled for a while). camcontrol now sends BDRs through the pass(4) device, and XPT_RESET_DEV CCBs are put on the device queue in the transport layer, as they should be. Submitted by: luoqi Reviewed by: ken --- sys/cam/cam_xpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/cam/cam_xpt.c') diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index 466af40..2aad3a7 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -2764,6 +2764,7 @@ xpt_action(union ccb *start_ccb) start_ccb->csio.sense_resid = 0; start_ccb->csio.resid = 0; /* FALLTHROUGH */ + case XPT_RESET_DEV: case XPT_ENG_EXEC: { struct cam_path *path; @@ -2874,7 +2875,6 @@ xpt_action(union ccb *start_ccb) */ /* FALLTHROUGH */ } - case XPT_RESET_DEV: case XPT_ACCEPT_TARGET_IO: case XPT_EN_LUN: case XPT_IMMED_NOTIFY: -- cgit v1.1