aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2014-05-19 11:55:40 -0400
committerKent Overstreet <kmo@daterainc.com>2014-08-04 18:23:03 -0400
commit501d52a90cbe652b41336c206ff0e95799d5a9b5 (patch)
tree84c394218e0180934467c678c63b92414463f2ab /drivers
parentbcf090e0040e30f8409e6a535a01e6473afb096f (diff)
bcache: Allocate bounce buffers with GFP_NOWAIT
There's no point in blocking on these allocations, since our fallback paths will probably go faster than blocking. Change-Id: I733ca202c25cb36bde02607a0a60552229a4241c
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/bcache/bset.c2
-rw-r--r--drivers/md/bcache/btree.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/bset.c b/drivers/md/bcache/bset.c
index 545416415305..646fe85261c1 100644
--- a/drivers/md/bcache/bset.c
+++ b/drivers/md/bcache/bset.c
@@ -1182,7 +1182,7 @@ static void __btree_sort(struct btree_keys *b, struct btree_iter *iter,
1182{ 1182{
1183 uint64_t start_time; 1183 uint64_t start_time;
1184 bool used_mempool = false; 1184 bool used_mempool = false;
1185 struct bset *out = (void *) __get_free_pages(__GFP_NOWARN|GFP_NOIO, 1185 struct bset *out = (void *) __get_free_pages(__GFP_NOWARN|GFP_NOWAIT,
1186 order); 1186 order);
1187 if (!out) { 1187 if (!out) {
1188 struct page *outp; 1188 struct page *outp;
diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c
index e538d45fa65a..39c7f5b73724 100644
--- a/drivers/md/bcache/btree.c
+++ b/drivers/md/bcache/btree.c
@@ -421,7 +421,7 @@ static void do_btree_node_write(struct btree *b)
421 SET_PTR_OFFSET(&k.key, 0, PTR_OFFSET(&k.key, 0) + 421 SET_PTR_OFFSET(&k.key, 0, PTR_OFFSET(&k.key, 0) +
422 bset_sector_offset(&b->keys, i)); 422 bset_sector_offset(&b->keys, i));
423 423
424 if (!bio_alloc_pages(b->bio, GFP_NOIO)) { 424 if (!bio_alloc_pages(b->bio, __GFP_NOWARN|GFP_NOWAIT)) {
425 int j; 425 int j;
426 struct bio_vec *bv; 426 struct bio_vec *bv;
427 void *base = (void *) ((unsigned long) i & ~(PAGE_SIZE - 1)); 427 void *base = (void *) ((unsigned long) i & ~(PAGE_SIZE - 1));