diff options
author | Kent Overstreet <kmo@daterainc.com> | 2014-05-19 08:57:55 -0700 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2015-01-29 15:44:53 +0100 |
commit | d0a8ea21073b520c39ab577ed663baeff20a0fb4 (patch) | |
tree | 9845b01b8f97604987cb13f31d98814002aa54b3 | |
parent | e9f9083556e7e829c7aa66646ef041ab26e6a471 (diff) | |
download | lwn-d0a8ea21073b520c39ab577ed663baeff20a0fb4.tar.gz lwn-d0a8ea21073b520c39ab577ed663baeff20a0fb4.zip |
bcache: Make sure to pass GFP_WAIT to mempool_alloc()
commit bcf090e0040e30f8409e6a535a01e6473afb096f upstream.
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>
Cc: Gabriel de Perthuis <g2p.code@gmail.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
-rw-r--r-- | drivers/md/bcache/btree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c index d1734d9d9c79..26ca4db908b9 100644 --- a/drivers/md/bcache/btree.c +++ b/drivers/md/bcache/btree.c @@ -141,7 +141,7 @@ static void bch_btree_node_read_done(struct btree *b) struct bset *i = b->sets[0].data; struct btree_iter *iter; - iter = mempool_alloc(b->c->fill_iter, GFP_NOWAIT); + iter = mempool_alloc(b->c->fill_iter, GFP_NOIO); iter->size = b->c->sb.bucket_size / b->c->sb.block_size; iter->used = 0; |