Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242280
b: refs/heads/master
c: 9f5b942
h: refs/heads/master
v: v3
  • Loading branch information
Shaohua Li authored and Jens Axboe committed Mar 10, 2011
1 parent 24e90a8 commit ad0291c
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 2ed1a6bcf97a7ed787e6799bf2e80b9e6f51dca7
refs/heads/master: 9f5b9425468c85a901d863d241ba5c5dff9b23b8
4 changes: 4 additions & 0 deletions trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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?
Expand All @@ -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);
Expand Down

0 comments on commit ad0291c

Please sign in to comment.