Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp517901yba; Fri, 26 Apr 2019 04:20:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjrbm4bfZCKLekm9vwZN56eybXAJwo4mAEEztsBoHzvDOtu7VoKlDvzQq49DEtmt+Tsu5T X-Received: by 2002:a17:902:e793:: with SMTP id cp19mr39697379plb.65.1556277646822; Fri, 26 Apr 2019 04:20:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556277646; cv=none; d=google.com; s=arc-20160816; b=RZ9WmpGW/p+YRXIg7PsdHrGHqdv0DIWvItP9MJ2u/VnXc0UO7d3NUKWi6893nubIme pTcCTdAFdjeeoLwi59lNprQCN9PoeJosv5a4hN5NMq550ZeH4fS5cWmiWr7WhjnT4pdz dUAiwMbvbb6SdIbcFGzQX8csPtNtphU1aXgggfBpw+Wpx/ZrFl9JmdkApbgfgg/s3ti8 zN9v11jMVIQjmEk7G+4IBg2aKP7rzx5/5NSJkdMmVB0Rw48iowUs3vghaba1zNmJWn1z VRx4l4A6cW6mvfkuIYVV3rOZMEkKPxrGIctCAv/uBDr97wZ71qVZDEGsJv2aVmidMEVu ZuHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=C7ZRk05yBiV6+dDDmXngAm8JwZ4xwkXzbqnxFvhUDkI=; b=ahTgu47FlW+O+MlmsZVTZieuFVqVFE1tTuhRAyYYrscoMrFhEqROIr8aOBtzw0zQ7l MNjmBOpNEFUYYt1R7iK5hkpmeEqnzEu/E11md3cqR2/JSqBk1YPgezPebznBUnmoF95m BlprT6Y8zRCED7DjwcqalSYpGWqzMV1ARl77hD+NFPh2G9QzwIIQbcaaBvWgtC+EaD0i wfa5xfhSQdL1NAOBHv89yHW+JECHeqLnssW01wbJyB40ScFxs0fmSx/4004Kyq7akcE9 4H8C0gl5j/tuCUzZ1hkilBN+SFMf5yZTJQxhNsIPi60DTX3TsLMySYeN03an8zw4NRsS GXCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si25300293pfh.244.2019.04.26.04.20.29; Fri, 26 Apr 2019 04:20:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726060AbfDZLTj (ORCPT + 99 others); Fri, 26 Apr 2019 07:19:39 -0400 Received: from mx2.suse.de ([195.135.220.15]:49472 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725901AbfDZLTj (ORCPT ); Fri, 26 Apr 2019 07:19:39 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1FFADAC10; Fri, 26 Apr 2019 11:19:38 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id EEC94DA847; Fri, 26 Apr 2019 13:20:41 +0200 (CEST) From: David Sterba To: torvalds@linux-foundation.org Cc: David Sterba , clm@fb.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Btrfs fix for 5.1-rc7 Date: Fri, 26 Apr 2019 13:20:36 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-)