Commit 4b4ac64b authored by Linus Torvalds's avatar Linus Torvalds

Limit USB storage transfers to 240 sectors.

parent 5237662f
...@@ -312,6 +312,9 @@ struct scsi_host_template usb_stor_host_template = { ...@@ -312,6 +312,9 @@ struct scsi_host_template usb_stor_host_template = {
/* lots of sg segments can be handled */ /* lots of sg segments can be handled */
.sg_tablesize = SG_ALL, .sg_tablesize = SG_ALL,
/* limit the total size of a transfer to 120 KB */
.max_sectors = 240,
/* merge commands... this seems to help performance, but /* merge commands... this seems to help performance, but
* periodically someone should test to see which setting is more * periodically someone should test to see which setting is more
* optimal. * optimal.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment