From cd3752643cd87c20c30aada1215ec292e3cebcac Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Thu, 8 Sep 2016 13:33:33 +0000 Subject: [PATCH] Don't report to devd statuses that CAM doesn't consider errors. Some statuses, such as "ATA pass through information available", are part part of absolutely normal operation and do not worth reporting. MFC after: 2 weeks --- sys/cam/cam_periph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 0415643814a..091b96f2488 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -1772,7 +1772,7 @@ cam_periph_error(union ccb *ccb, cam_flags camflags, xpt_print(ccb->ccb_h.path, "Retrying command\n"); } - if (devctl_err) + if (devctl_err && (error != 0 || (action & SSQ_PRINT_SENSE) != 0)) cam_periph_devctl_notify(orig_ccb); if ((action & SSQ_LOST) != 0) {