Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 42969f7a3df2e52621c4e4d43939ed85 > files > 21

kernel-2.6.18-274.18.1.el5.centos.plus.src.rpm

--- a/drivers/usb/storage/scsiglue.c	2006-09-19 20:42:06.000000000 -0700
+++ b/drivers/usb/storage/scsiglue.c	2010-02-14 06:51:20.000000000 -0800
@@ -171,6 +171,10 @@
 		 * is an occasional series of retries that will all fail. */
 		sdev->retry_hwerror = 1;
 
+		/* USB disks should allow restart.  Some drives spin down
+		* automatically, requiring a START-STOP UNIT command. */
+		sdev->allow_restart = 1;
+
 	} else {
 
 		/* Non-disk-type devices don't need to blacklist any pages