|
@@ -6754,7 +6754,9 @@ void __sched io_schedule(void)
|
|
|
|
|
|
delayacct_blkio_start();
|
|
|
atomic_inc(&rq->nr_iowait);
|
|
|
+ current->in_iowait = 1;
|
|
|
schedule();
|
|
|
+ current->in_iowait = 0;
|
|
|
atomic_dec(&rq->nr_iowait);
|
|
|
delayacct_blkio_end();
|
|
|
}
|
|
@@ -6767,7 +6769,9 @@ long __sched io_schedule_timeout(long timeout)
|
|
|
|
|
|
delayacct_blkio_start();
|
|
|
atomic_inc(&rq->nr_iowait);
|
|
|
+ current->in_iowait = 1;
|
|
|
ret = schedule_timeout(timeout);
|
|
|
+ current->in_iowait = 0;
|
|
|
atomic_dec(&rq->nr_iowait);
|
|
|
delayacct_blkio_end();
|
|
|
return ret;
|