summaryrefslogtreecommitdiffstats
path: root/fs/aio.c
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2010-07-01 07:55:01 +0200
committerJens Axboe <jaxboe@fusionio.com>2011-03-10 08:52:27 +0100
commit9f5b9425468c85a901d863d241ba5c5dff9b23b8 (patch)
tree0b24e591059698f1e9cb581038d112d5e3f2f4d2 /fs/aio.c
parent2ed1a6bcf97a7ed787e6799bf2e80b9e6f51dca7 (diff)
downloadblackbird-op-linux-9f5b9425468c85a901d863d241ba5c5dff9b23b8.tar.gz
blackbird-op-linux-9f5b9425468c85a901d863d241ba5c5dff9b23b8.zip
fs: make aio plug
Signed-off-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'fs/aio.c')
-rw-r--r--fs/aio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/aio.c b/fs/aio.c
index c5ea494ea9e2..1476bed1c5fb 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1660,6 +1660,7 @@ long do_io_submit(aio_context_t ctx_id, long nr,
long ret = 0;
int i;
struct hlist_head batch_hash[AIO_BATCH_HASH_SIZE] = { { 0, }, };
+ struct blk_plug plug;
if (unlikely(nr < 0))
return -EINVAL;
@@ -1676,6 +1677,8 @@ long do_io_submit(aio_context_t ctx_id, long nr,
return -EINVAL;
}
+ blk_start_plug(&plug);
+
/*
* AKPM: should this return a partial result if some of the IOs were
* successfully submitted?
@@ -1698,6 +1701,7 @@ long do_io_submit(aio_context_t ctx_id, long nr,
if (ret)
break;
}
+ blk_finish_plug(&plug);
aio_batch_free(batch_hash);
put_ioctx(ctx);
OpenPOWER on IntegriCloud