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
This commit is contained in:
Michael Lotz 2009-08-22 16:12:36 +00:00
parent b0586d610a
commit 7f5799140f

View File

@ -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