Re: btrfs crash when low on memory.

From: Josef Bacik
Date: Wed Feb 27 2013 - 08:36:47 EST


On Tue, Feb 26, 2013 at 10:22:47PM -0700, Dave Jones wrote:
> Something I've yet to repeat managed to leak a whole bunch of memory
> while I was travelling, and locked up my workstation.
>
> When I got home, this was the last thing printed out before it locked up
> (it did make it into the logs thankfully) after a bunch of instances of
> the oom-killers handywork.

Yeah we have a lot of

ptr = kmalloc();
BUG_ON(ptr);

everywhere. I'll fix this one up but I really need to sit down and go through
all of them and make sure we do the right thing in all these places. Thanks,

Josef
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/