Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 376282
b: refs/heads/master
c: 03e04f0
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin LaHaise authored and Linus Torvalds committed May 24, 2013
1 parent 53783d2 commit d42ccdc
Show file tree
Hide file tree
Showing 2 changed files with 4 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: a9ff785e4437c83d2179161e012f5bdfbd6381f0
refs/heads/master: 03e04f048d2774aabd126fbad84729d4ba9dc40a
4 changes: 3 additions & 1 deletion trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ static void free_ioctx(struct kioctx *ctx)
kunmap_atomic(ring);

while (atomic_read(&ctx->reqs_active) > 0) {
wait_event(ctx->wait, head != ctx->tail);
wait_event(ctx->wait,
head != ctx->tail ||
atomic_read(&ctx->reqs_active) <= 0);

avail = (head <= ctx->tail ? ctx->tail : ctx->nr_events) - head;

Expand Down

0 comments on commit d42ccdc

Please sign in to comment.