Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3887
b: refs/heads/master
c: c016e22
h: refs/heads/master
i:
  3885: e7c865e
  3883: d9ee683
  3879: 40f974e
  3871: 8fb6406
v: v3
  • Loading branch information
S�bastien Dugu authored and Linus Torvalds committed Jun 29, 2005
1 parent 5df001c commit ba929e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 334a13ec3d01a1a4b4f2249735b793105cb4a519
refs/heads/master: c016e2257acd00a7ffd87fa1eec896138563d1aa
9 changes: 9 additions & 0 deletions trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ static DEFINE_SPINLOCK(fput_lock);
static LIST_HEAD(fput_head);

static void aio_kick_handler(void *);
static void aio_queue_work(struct kioctx *);

/* aio_setup
* Creates the slab caches used by the aio routines, panic on
Expand Down Expand Up @@ -747,6 +748,14 @@ static ssize_t aio_run_iocb(struct kiocb *iocb)
* has already been kicked */
if (kiocbIsKicked(iocb)) {
__queue_kicked_iocb(iocb);

/*
* __queue_kicked_iocb will always return 1 here, because
* iocb->ki_run_list is empty at this point so it should
* be safe to unconditionally queue the context into the
* work queue.
*/
aio_queue_work(ctx);
}
}
return ret;
Expand Down

0 comments on commit ba929e7

Please sign in to comment.