--- zzzz-none-000/linux-2.6.39.4/drivers/usb/storage/scsiglue.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/drivers/usb/storage/scsiglue.c 2021-11-10 13:38:17.000000000 +0000 @@ -550,8 +550,14 @@ /* lots of sg segments can be handled */ .sg_tablesize = SCSI_MAX_SG_CHAIN_SEGMENTS, +#if defined (CONFIG_AVM_KERNEL) + /* == AVM/WKR 20160914 - further transfer speed optimization == */ + /* limit the total size of a transfer to 512 KB to reduce USB irqs */ + .max_sectors = 1024, +#else /* limit the total size of a transfer to 120 KB */ .max_sectors = 240, +#endif /* merge commands... this seems to help performance, but * periodically someone should test to see which setting is more