Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3972000pjo; Tue, 3 Mar 2020 10:19:26 -0800 (PST) X-Google-Smtp-Source: ADFU+vtuNf+WgdfiXtrhqIkIT769xAZ0kHvWZKfloNrN+uOLAv1ac84MQYI+jNrtDDk9QkkQYijC X-Received: by 2002:a9d:6204:: with SMTP id g4mr4511175otj.94.1583259566497; Tue, 03 Mar 2020 10:19:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583259566; cv=none; d=google.com; s=arc-20160816; b=mmypHypXaXk7op1JyN9c+gn2sv0vYNv5IK6aTkBTNy7NwUziQA5I1SK4gNtDuM7/iF 91DLpL+A7H1Et/woJoTkh2Tw4Pcp8EB3PAPSslOeR43k6kUqIHe9PProyaS03PcRCU9t rfil7Wnno3SITUxi1RyY5cBxu9u8DYHkvu1gWApFIKBVauuYnTmIFgvGBhCDzhg0QP8C Vj5tHskTIIvqu0yDVraBDW31lkCCfgHSjtuwNLunjEmmF5LahuePqPo8IiWpIOqhfLGu 3yoa+5CjaGMQZWgwVo9Cg7BcoYzBes90F+GIN6hI1Dx+I8hxYtJnECpM/TNYURvhZSwM w1FA== 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=+tWqc4gDMigIVFytQ77cuRqiyrTQDntyNz2qL2HdHMw=; b=JLYGAYjmcCQesrsIAhvSHfkL42i935CYU3cED7F9Swk5me2UNvgH2oo/S3HpQvs96v g5QczZY+RqUaMXUdJ2T9D4HCObY+GohfD1geuhhblLgQO1EayPMzbSclp9X8MD6sNnE9 cs3ZXzpiYL1vX5wEK+jBm5vxs8vZ6NDtuJoAN4q4VOxo3rrueIEblS7lyWoa6CNOG/Z6 laBoitORs9x+cVNrMkEpCEoDe5+B2IesdXIYpCh7IEeqIgyEYdB/Hv4qEIpXlniicgYf eHRyTI3ztzyMm99Fc9fTWc2WjvIKGGpfjeCC/57cgkBzELdZ1LHxzIiCl49gR5Pd5JTe SRCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qB+bjdCN; 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 w4si7764682oih.231.2020.03.03.10.19.14; Tue, 03 Mar 2020 10:19:26 -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=qB+bjdCN; 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 S1730499AbgCCSSE (ORCPT + 99 others); Tue, 3 Mar 2020 13:18:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:59570 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727070AbgCCSSE (ORCPT ); Tue, 3 Mar 2020 13:18:04 -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 72B2C20656; Tue, 3 Mar 2020 18:18:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583259483; bh=IHuMRzU8QqFclZ7mXjFHOkuflL21f3jh8l3Cb/uFw0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qB+bjdCN5BHLotWc7ReR3ShmY6tWCv+P6jh55Yx4PMegMHKe6juo+BpIi/o7VurUQ ovB+OjIzYeCObvo+fyr3tqoYmFpNH6EehdPpW+d/lZ2bX8hffGCcgoc4WNLtD90aXm clCH4fCLeUnZhgyZ6dsrBB3/MRDs/s8/s2QPNC5c= Date: Tue, 3 Mar 2020 19:12:28 +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.4 062/152] bcache: ignore pending signals when creating gc and allocator thread Message-ID: <20200303181228.GA1014382@kroah.com> References: <20200303174302.523080016@linuxfoundation.org> <20200303174309.501274295@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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:55:04AM -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. > > Please drop this one, it's being reverted in mainline. Dropped from all trees now, thanks. greg k-h