Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3971319pjo; Tue, 3 Mar 2020 10:18:43 -0800 (PST) X-Google-Smtp-Source: ADFU+vvLZGV8c03neW3Uqk9xsQNz0XjgxLyb5inwDEwu9vIYThIKq1mLkcXWIy/5HXMg8kYsX8AU X-Received: by 2002:aca:f513:: with SMTP id t19mr3449968oih.28.1583259523704; Tue, 03 Mar 2020 10:18:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583259523; cv=none; d=google.com; s=arc-20160816; b=M+EmDR1UBuqjmOLMP2tjavbhs05TEN5oAyRi3XqHdPQ1YGDqOl3clkRUwcK36Eb7FV RobZfFe3+zw2hY/8zajRNDe/R3XLnxvjfmvro/Iq5bZhe+tNtF2nezwZLec5q8DBYfls Sc2ueBR509pNG56Rp0Low7f55zrDUT2PWhIEBXx+k/7Q4Uoc0mpZ+PzilHvu+mlB1fvD VPppvKW9b/f4ySHzGV9vmcPBo6Uv0P0uq2uCjBPjmmigtbld6H2i0skpGv8SRBzCAJgt fOhshpWuI9X4nLSO9QQ3UHogHseYRpJ/GePgIE93p5fozFelf4+X+I/uuOhNK57Bbh0+ in/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=AX3NpGaLi1QXq8s8twL4R6H3PUKC2Njbx2CrQcmmaxQ=; b=xKJBLCAebhSCrI4m1p+4v4TF7WPXp2MNJWseU+fNx6UxDhcP8wt70717kkgDgNaMJH Aaji2kPQxTActLYX21ZE7w71HAiQ5iXhScQt7C2or14AaqFg5rrIOd+rADv8Y19Xy7rX YfNvj/O2WlmtIT8dfIRxqCOzykDXiUdSY0yLpo0MpnI51YI0sW2hI0ZWtYQep9ICdTs6 ORKU/Wqouj+/zu0cqS+5/24JC2oSr3j/sQPUKR26+a+tWnau3zjnzujIav+HNMAGljtG 8gpbzmzStjYXYvEn5aqkLquOabXg5HNMlSMFRaMWhS4Upugil2PCyr4vIGwdKhmC41mh 1ivQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XfzYcqO3; 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 13si8451665oiy.28.2020.03.03.10.18.31; Tue, 03 Mar 2020 10:18:43 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=XfzYcqO3; 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 S1731175AbgCCSSH (ORCPT + 99 others); Tue, 3 Mar 2020 13:18:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:59638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbgCCSSG (ORCPT ); Tue, 3 Mar 2020 13:18:06 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E715D20656; Tue, 3 Mar 2020 18:18:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583259486; bh=kgwYA8jHKo3dcsw6x45Y1PX+SxYOADIKIjm/Qo8z6yE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XfzYcqO3z/ZVJkDPP8k2+fqUMkA8gYbN14ahfUnqidy+1Mq6Hn37tHrSrpncx2cHY Wuej9fRnSdhLJx6SGRh37iOyKBnwO/pUtQuh6RaLwyaiTe80rmY+ZQCxObWV6w0WYY v1sqnfNlAurrg/WQ+MpVJrt27oKBy0NSi5uAfTOg= Date: Tue, 3 Mar 2020 19:14:13 +0100 From: Greg Kroah-Hartman To: Jens Axboe Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Coly Li , Sasha Levin Subject: Re: [PATCH 5.5 072/176] bcache: ignore pending signals when creating gc and allocator thread Message-ID: <20200303181413.GB1014382@kroah.com> References: <20200303174304.593872177@linuxfoundation.org> <20200303174312.994115258@linuxfoundation.org> <24e19cd9-8eea-a41a-27f7-84ffcd872977@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <24e19cd9-8eea-a41a-27f7-84ffcd872977@kernel.dk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 10:58:29AM -0700, Jens Axboe wrote: > On 3/3/20 10:42 AM, Greg Kroah-Hartman wrote: > > From: Coly Li > > > > [ Upstream commit 0b96da639a4874311e9b5156405f69ef9fc3bef8 ] > > > > When run a cache set, all the bcache btree node of this cache set will > > be checked by bch_btree_check(). If the bcache btree is very large, > > iterating all the btree nodes will occupy too much system memory and > > the bcache registering process might be selected and killed by system > > OOM killer. kthread_run() will fail if current process has pending > > signal, therefore the kthread creating in run_cache_set() for gc and > > allocator kernel threads are very probably failed for a very large > > bcache btree. > > > > Indeed such OOM is safe and the registering process will exit after > > the registration done. Therefore this patch flushes pending signals > > during the cache set start up, specificly in bch_cache_allocator_start() > > and bch_gc_thread_start(), to make sure run_cache_set() won't fail for > > large cahced data set. > > Ditto this one, of course. > > Did someone send this in for stable? It's not marked stable in the > original commit. I think the autobot grabbed it.