aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/aio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/aio.c b/fs/aio.c
index ea2e19820381..d02f43b50a3d 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -303,7 +303,7 @@ static void wait_for_all_aios(struct kioctx *ctx)
303 set_task_state(tsk, TASK_UNINTERRUPTIBLE); 303 set_task_state(tsk, TASK_UNINTERRUPTIBLE);
304 while (ctx->reqs_active) { 304 while (ctx->reqs_active) {
305 spin_unlock_irq(&ctx->ctx_lock); 305 spin_unlock_irq(&ctx->ctx_lock);
306 schedule(); 306 io_schedule();
307 set_task_state(tsk, TASK_UNINTERRUPTIBLE); 307 set_task_state(tsk, TASK_UNINTERRUPTIBLE);
308 spin_lock_irq(&ctx->ctx_lock); 308 spin_lock_irq(&ctx->ctx_lock);
309 } 309 }
@@ -323,7 +323,7 @@ ssize_t fastcall wait_on_sync_kiocb(struct kiocb *iocb)
323 set_current_state(TASK_UNINTERRUPTIBLE); 323 set_current_state(TASK_UNINTERRUPTIBLE);
324 if (!iocb->ki_users) 324 if (!iocb->ki_users)
325 break; 325 break;
326 schedule(); 326 io_schedule();
327 } 327 }
328 __set_current_state(TASK_RUNNING); 328 __set_current_state(TASK_RUNNING);
329 return iocb->ki_user_data; 329 return iocb->ki_user_data;
@@ -1170,7 +1170,7 @@ retry:
1170 ret = 0; 1170 ret = 0;
1171 if (to.timed_out) /* Only check after read evt */ 1171 if (to.timed_out) /* Only check after read evt */
1172 break; 1172 break;
1173 schedule(); 1173 io_schedule();
1174 if (signal_pending(tsk)) { 1174 if (signal_pending(tsk)) {
1175 ret = -EINTR; 1175 ret = -EINTR;
1176 break; 1176 break;