Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210913
b: refs/heads/master
c: a0c42ba
h: refs/heads/master
i:
  210911: 9722796
v: v3
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Sep 23, 2010
1 parent bb10207 commit 238e43c
Show file tree
Hide file tree
Showing 2 changed files with 10 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: d1908362ae0b97374eb8328fbb471576332f9fb1
refs/heads/master: a0c42bac79731276c9b2f28d54f9e658fcf843a2
10 changes: 9 additions & 1 deletion trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,16 @@ static ssize_t aio_run_iocb(struct kiocb *iocb)
*/
ret = retry(iocb);

if (ret != -EIOCBRETRY && ret != -EIOCBQUEUED)
if (ret != -EIOCBRETRY && ret != -EIOCBQUEUED) {
/*
* There's no easy way to restart the syscall since other AIO's
* may be already running. Just fail this IO with EINTR.
*/
if (unlikely(ret == -ERESTARTSYS || ret == -ERESTARTNOINTR ||
ret == -ERESTARTNOHAND || ret == -ERESTART_RESTARTBLOCK))
ret = -EINTR;
aio_complete(iocb, ret, 0);
}
out:
spin_lock_irq(&ctx->ctx_lock);

Expand Down

0 comments on commit 238e43c

Please sign in to comment.