From 7f5799140f536653f5f5bf15057e263d7d6a2eda Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sat, 22 Aug 2009 16:12:36 +0000 Subject: [PATCH] Enlarge the timeout for data transfers. It was 2 seconds before and under a bit of load, when using large enough block sizes or when simply having a slow device this is by far not enough. It is now at 15 seconds, which should reduce timeout problems to those cases where the device actually get's stuck (because of us doing something wrong). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32615 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp b/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp index 49fecbf993..65f40a55c7 100644 --- a/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp +++ b/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp @@ -216,7 +216,8 @@ usb_disk_transfer_data(disk_device *device, bool directionIn, void *data, } do { - result = acquire_sem_etc(device->notify, 1, B_RELATIVE_TIMEOUT, 2000000); + result = acquire_sem_etc(device->notify, 1, B_RELATIVE_TIMEOUT, + 10 * 1000 * 1000); if (result == B_TIMED_OUT) { // Cancel the transfer and collect the sem that should now be // released through the callback on cancel. Handling of device