Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292338
b: refs/heads/master
c: 9fa1cb3
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Mar 21, 2012
1 parent 53f3414 commit 753e0cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 2dd542b7aeb1c222273cf0593a718d9b44998d9f
refs/heads/master: 9fa1cb397fa052fc9acfaf5a9f2faff31e10f6b7
6 changes: 3 additions & 3 deletions trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)
goto out_freectx;

/* limit the number of system wide aios */
spin_lock_bh(&aio_nr_lock);
spin_lock(&aio_nr_lock);
if (aio_nr + nr_events > aio_max_nr ||
aio_nr + nr_events < aio_nr) {
spin_unlock_bh(&aio_nr_lock);
spin_unlock(&aio_nr_lock);
goto out_cleanup;
}
aio_nr += ctx->max_reqs;
spin_unlock_bh(&aio_nr_lock);
spin_unlock(&aio_nr_lock);

/* now link into global list. */
spin_lock(&mm->ioctx_lock);
Expand Down

0 comments on commit 753e0cb

Please sign in to comment.