FC1 USB storage 240 (nobugid)

Pete Zaitcev zaitcev at redhat.com
Tue Dec 16 22:11:58 UTC 2003


This seems like a good idea, based on discussions on linux-usb-devel,
althogh I do not have any bugs against this specifically.

-- Pete

--- linux-2.4.22-1.2130.nptl/drivers/usb/storage/scsiglue.c	2003-06-13 07:51:37.000000000 -0700
+++ linux-2.4.22-1.2130.nptl-usbstor3/drivers/usb/storage/scsiglue.c	2003-12-16 14:04:15.000000000 -0800
@@ -394,6 +411,13 @@
 	can_queue:		1,
 	this_id:		-1,
 
+	/*
+	 * This is supposed to be an HBA limit. In our case, it is here
+	 * because many _devices_ break if transfer is too long, but
+	 * we know no reliable way to detect and blacklist them.
+	 */
+	max_sectors:		240,
+
 	sg_tablesize:		SG_ALL,
 	cmd_per_lun:		1,
 	present:		0,





More information about the devel mailing list