From 753e0cb5eae85148e3319ebf537f117db8808f89 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Sat, 10 Mar 2012 23:14:05 -0500 Subject: [PATCH] --- yaml --- r: 292338 b: refs/heads/master c: 9fa1cb397fa052fc9acfaf5a9f2faff31e10f6b7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/aio.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index c55cc328695b..39452804c3f8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2dd542b7aeb1c222273cf0593a718d9b44998d9f +refs/heads/master: 9fa1cb397fa052fc9acfaf5a9f2faff31e10f6b7 diff --git a/trunk/fs/aio.c b/trunk/fs/aio.c index 216eb37b2c76..9c3de88e2ead 100644 --- a/trunk/fs/aio.c +++ b/trunk/fs/aio.c @@ -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);