summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1999-10-31 02:39:44 +0000
committerken <ken@FreeBSD.org>1999-10-31 02:39:44 +0000
commitb57c214bcc798094ac9d02b7cd0fb77213049fe7 (patch)
tree70ab9efa10a5a8527db4754db00ebc8fc70ead3d /sys/cam
parentf66b8ba3d1ba606c5dc7ad0355144655f64859ac (diff)
downloadFreeBSD-src-b57c214bcc798094ac9d02b7cd0fb77213049fe7.zip
FreeBSD-src-b57c214bcc798094ac9d02b7cd0fb77213049fe7.tar.gz
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
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/cam_xpt.c2
1 files changed, 1 insertions, 1 deletions
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:
OpenPOWER on IntegriCloud