Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74581
b: refs/heads/master
c: e00ba3d
h: refs/heads/master
i:
  74579: e352b06
v: v3
  • Loading branch information
Jeff Moyer authored and Linus Torvalds committed Dec 5, 2007
1 parent df8a178 commit 66a9801
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e3c0ac04f980750a368f7cd5f1b8d1d2cdc1f735
refs/heads/master: e00ba3dae077f54cfd2af42e939a618caa7a3bca
7 changes: 6 additions & 1 deletion trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,12 @@ static int read_events(struct kioctx *ctx,
ret = 0;
if (to.timed_out) /* Only check after read evt */
break;
io_schedule();
/* Try to only show up in io wait if there are ops
* in flight */
if (ctx->reqs_active)
io_schedule();
else
schedule();
if (signal_pending(tsk)) {
ret = -EINTR;
break;
Expand Down

0 comments on commit 66a9801

Please sign in to comment.