Author: mav
Date: Thu Sep 22 03:31:14 2016
New Revision: 306153
URL: https://svnweb.freebsd.org/changeset/base/306153

Log:
  MFC r305610: 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.

Modified:
  stable/11/sys/cam/cam_periph.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/cam/cam_periph.c
==============================================================================
--- stable/11/sys/cam/cam_periph.c      Thu Sep 22 03:30:28 2016        
(r306152)
+++ stable/11/sys/cam/cam_periph.c      Thu Sep 22 03:31:14 2016        
(r306153)
@@ -1772,7 +1772,7 @@ cam_periph_error(union ccb *ccb, cam_fla
                        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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to