Thread (2 messages) 2 messages, 2 authors, 2015-01-15

Re: [PATCH] bcache: Make sure to pass GFP_WAIT to mempool_alloc()

From: Greg KH <hidden>
Date: 2015-01-15 18:35:37

On Thu, Jan 15, 2015 at 05:26:37PM +0100, Gabriel de Perthuis wrote:
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 <redacted>
---

The bug was introduced in v3.11, fixed in v3.17.

Jens mentioned bcache has many stable@ candidates previously:
https://lkml.org/lkml/2014/9/5/360

I'm cherry-picking this fix because I was getting crashes.

---
 drivers/md/bcache/btree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
What exactly is the commit id for this in Linus's tree?

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help