CAM - disable cache synchronization by default for USB attachments.
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 9 Jul 2009 03:01:17 +0000 (20:01 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 9 Jul 2009 03:01:17 +0000 (20:01 -0700)
commita9453758088330f18043fd92f688ecf48d29ccca
tree214f158c7289df4fa311f3bdeabd89e3260adbed
parente73e7a3049b61c3a0195603718607cf0d1c5144f
CAM - disable cache synchronization by default for USB attachments.

Instead of trying to blacklist particular usb mass storage devices which
do not support the cache synchronization command, just default to not
supporting it for ALL usb mass storage attachments.  Too many usb devices
brick when sent the command.

It matters more now that people are using HAMMER, and HAMMER utilizes the
cache synchronization command to delineate flushes.  We will now by
definition not be able to guarantee recovery if HAMMER is used on a USB
mass storage device.  It will probably work anyway, though.

Reported-by: Many people
sys/bus/cam/scsi/scsi_da.c