|
@@ -55,22 +55,6 @@ long congestion_wait(int rw, long timeout)
|
|
|
}
|
|
|
EXPORT_SYMBOL(congestion_wait);
|
|
|
|
|
|
-long congestion_wait_interruptible(int rw, long timeout)
|
|
|
-{
|
|
|
- long ret;
|
|
|
- DEFINE_WAIT(wait);
|
|
|
- wait_queue_head_t *wqh = &congestion_wqh[rw];
|
|
|
-
|
|
|
- prepare_to_wait(wqh, &wait, TASK_INTERRUPTIBLE);
|
|
|
- if (signal_pending(current))
|
|
|
- ret = -ERESTARTSYS;
|
|
|
- else
|
|
|
- ret = io_schedule_timeout(timeout);
|
|
|
- finish_wait(wqh, &wait);
|
|
|
- return ret;
|
|
|
-}
|
|
|
-EXPORT_SYMBOL(congestion_wait_interruptible);
|
|
|
-
|
|
|
/**
|
|
|
* congestion_end - wake up sleepers on a congested backing_dev_info
|
|
|
* @rw: READ or WRITE
|