- if(midQ->midState & MID_REQUEST_SUBMITTED) {
- set_current_state(TASK_UNINTERRUPTIBLE);
- timeout = sleep_on_timeout(&ses->server->response_q,2 * HZ);
- }
- } else { /* using normal timeout */
- /* timeout = wait_event_interruptible_timeout(ses->server->response_q,
+ timeout = 2 * HZ;
+
+ }
+
+ /* No user interrupts in wait - wreaks havoc with performance */
+ if(timeout != MAX_SCHEDULE_TIMEOUT) {
+ timeout += jiffies;
+ wait_event(ses->server->response_q,