summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-05-15 13:01:14 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-06-22 12:31:52 +0200
commit8161cb90893a3d6e4c84b288d0bd2ba5b1d7a1ed (patch)
treeea57a30760adafd16629037724af02560cd43905
parent3a40bacde67c35d64126eec952bc88ca94fd7bc6 (diff)
read-ahead: use pluggingplug
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--mm/readahead.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/readahead.c b/mm/readahead.c
index cbddc3e17246..443dd1b57f99 100644
--- a/mm/readahead.c
+++ b/mm/readahead.c
@@ -112,6 +112,8 @@ static int read_pages(struct address_space *mapping, struct file *filp,
unsigned page_idx;
int ret;
+ blk_plug_current();
+
if (mapping->a_ops->readpages) {
ret = mapping->a_ops->readpages(filp, mapping, pages, nr_pages);
/* Clean up the remaining pages */
@@ -129,7 +131,10 @@ static int read_pages(struct address_space *mapping, struct file *filp,
page_cache_release(page);
}
ret = 0;
+
out:
+ blk_unplug_current();
+
return ret;
}