]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bcache: Make sure to pass GFP_WAIT to mempool_alloc()
authorKent Overstreet <kmo@daterainc.com>
Mon, 19 May 2014 15:57:55 +0000 (08:57 -0700)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Jan 2015 14:44:53 +0000 (15:44 +0100)
commitd0a8ea21073b520c39ab577ed663baeff20a0fb4
tree9845b01b8f97604987cb13f31d98814002aa54b3
parente9f9083556e7e829c7aa66646ef041ab26e6a471
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>
drivers/md/bcache/btree.c