Commit bcf090e0040e30f8409e6a535a01e6473afb096f
1 parent
9e5c353510
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
bcache: Make sure to pass GFP_WAIT to mempool_alloc()
this was very wrong - mempool_alloc() only guarantees success with GFP_WAIT. bcache uses GFP_NOWAIT in various other places where we have a fallback, circuits must've gotten crossed when writing this code or something. Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/md/bcache/btree.c
... | ... | @@ -202,7 +202,7 @@ |
202 | 202 | struct bset *i = btree_bset_first(b); |
203 | 203 | struct btree_iter *iter; |
204 | 204 | |
205 | - iter = mempool_alloc(b->c->fill_iter, GFP_NOWAIT); | |
205 | + iter = mempool_alloc(b->c->fill_iter, GFP_NOIO); | |
206 | 206 | iter->size = b->c->sb.bucket_size / b->c->sb.block_size; |
207 | 207 | iter->used = 0; |
208 | 208 |