[GIT PULL] Btrfs fix for 5.1-rc7

From: David Sterba
Date: Fri Apr 26 2019 - 07:19:45 EST


Hi,

one patch to fix a crash in io submission path, due to memory allocation
errors. In short, the multipage bio work that landed in 5.1 caused
larger bios that in turn require larger temporary memory for checksums.
The patch is a workaround, we're going to rework the allocation so it
does not require the vmalloc fallback.

It took a while to identify that it's caused by patches in 5.1 and not a
patchset that did some changes in error handling in the code. I've
tested it on various memory/cpu combinations, it could hit OOM but does
not crash.

The timestamp of the patch is less than a day due to updates in the
changelog, tests were running meanwhile.

Please pull, thanks.

----------------------------------------------------------------
The following changes since commit 272e5326c7837697882ce3162029ba893059b616:

btrfs: prop: fix vanished compression property after failed set (2019-04-04 17:57:53 +0200)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-5.1-rc6-tag

for you to fetch changes up to a3d46aea46f99d134b4e0726e4826b824c3e5980:

btrfs: Switch memory allocations in async csum calculation path to kvmalloc (2019-04-25 14:17:38 +0200)

----------------------------------------------------------------
Nikolay Borisov (1):
btrfs: Switch memory allocations in async csum calculation path to kvmalloc

fs/btrfs/file-item.c | 15 +++++++++++----
fs/btrfs/ordered-data.c | 3 ++-
2 files changed, 13 insertions(+), 5 deletions(-)