Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3659861rwb; Tue, 20 Sep 2022 02:53:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4x2Z1kq5OXgTBKjsmTcI1GvKXXZV7MDOj761SM+O8jpY+0fZuH0XfcHsiMUvzndGaHIT1P X-Received: by 2002:aa7:d617:0:b0:44e:d2de:3fe1 with SMTP id c23-20020aa7d617000000b0044ed2de3fe1mr19694917edr.104.1663667594890; Tue, 20 Sep 2022 02:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663667594; cv=none; d=google.com; s=arc-20160816; b=0TP3Qxh31GL5nMSO0kebQ98i8Av45BmuXEQM502Vy14eJpaOZcVwRhuEw4mqCkv+t8 2JB6G77l5hviFc21Inv3RPnzANhGvCye5CoME+rW4EkPuXrMsw+3BjMBgpGkX4WHyiEB CQ/MrRa+ROwMPxv8hNm3nF1aKlrC0E8rRcUsBWSPwqxkdQpKKio1TVu19HRPLYLRohNz xwZr6Qe62Xbn7IRmuiu8nY/B9pZ27f7uBvVnlkeqKFqXvkusXm0megkKNobhDpYrvgUZ HJV5krhkYBOLc9uWsFz2H2+NhUFm94RcFh/DixRVND9sDT+cVMUUkQopJCsZ0c0bjfpd LjMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=138IjAg8FELHzInvjsbFPKlTcrvjuLJXi6QY0IdyC9s=; b=k/2B7TBu6TdZMilMzu4be3KFfRoDdcKAox6peTGXY7kDToN3fbYyccG78kYZriUGva DQoB7PT1YmL+xMiGiVxE8MLwcRfWhLV+NM9stlY2gF6qDI2H4G0DsveKdbanC4VVxDGz 9xFm1FdXMf9trzNcWGkOyB7V1Qytd77/m8+k9rAlGfYy8hhGUeT0gvp0XrMSqseQw+no IevJz0LMfrR8dLZ2UVaeYmO505kPzaKsOFeSGJDL9kZ52CIMLoGcXhzDEQHxphBYMpQC GOB8HYHas79dUMA1C9zZLwFsE2wSIwLiw+FTd0xr1LvkwdV5LRebY8bidcLbhMc2Ovke IfiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mYpgHOS2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc8-20020a1709078a0800b00781778190fcsi976805ejc.890.2022.09.20.02.52.48; Tue, 20 Sep 2022 02:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mYpgHOS2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230374AbiITJ1u (ORCPT + 99 others); Tue, 20 Sep 2022 05:27:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbiITJ1p (ORCPT ); Tue, 20 Sep 2022 05:27:45 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 846C46BCFA for ; Tue, 20 Sep 2022 02:27:44 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id w13so1792894plp.1 for ; Tue, 20 Sep 2022 02:27:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=138IjAg8FELHzInvjsbFPKlTcrvjuLJXi6QY0IdyC9s=; b=mYpgHOS2UXARVYgXPgPsv7uXK5FNk1Hn7a6MtMG/+YHW1Nis2O/H6DWw700hAesdkv HyhUROVWGo20nnP5r4WF53L8eHo/F48m3awsXOHVodA8nEvKnnaqtXPkbPqFlW2jdiMJ SPwcEKD3E4HicTK3cOroLwlVnhttf+OlHRMWvGZd+s7c1+0eu9WQRKGeHItaB/k9UAOR YNrcfTlnNahKpeTdYAs+MvLvZZ2lDHz7fLctX3v4iu/qH1gHsUcAVYPVFuAN4IVxxNi/ OMzFkLdJtT5g0ZYoueJMxWu3Z2YUhoqbgdBN93lN4djYLFalTnxLYAHKqdnsVVwalHJw OqZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=138IjAg8FELHzInvjsbFPKlTcrvjuLJXi6QY0IdyC9s=; b=kmqpvi2PMHA4hlSy/0qodUn4moKbazkf76KgIuGdVd5vZ/RkeEPrseCFO6iCI/kOuz +c+OKHnGrmQYeBGavqL8PGp3+m0ODW28R7uPx2cupW30zo1w6Qpvisw2yvuUQ9BLgREn YpWsbeQSFsg3AgNyGm1UtN5Ggv9a9g1KYwxUwfadgI9FD7ke6UhuqBFRDBh7/r+8PbF6 ZG1mfMkXrUJAHsZOKkvzhz1qUTKG4LIUTgkQxizZy/LP2xv1lm9NjXpPFndf1Fwl45E7 sH/UMkW0gJ0j1ereDm2s5xF7YGqcoQTv2WHymh5ohO3x8HfrYlxlBJIKQNmyDV8is5ip t/sQ== X-Gm-Message-State: ACrzQf09bD/I+0oEEDmfciqPdi8wacItOu2tiKZDsFA8BTUtefsuX+tI wWBv+JZFop3hajXvRKfwxPY= X-Received: by 2002:a17:90b:3803:b0:203:a31c:e2e9 with SMTP id mq3-20020a17090b380300b00203a31ce2e9mr2797280pjb.13.1663666063919; Tue, 20 Sep 2022 02:27:43 -0700 (PDT) Received: from hyeyoo ([114.29.91.56]) by smtp.gmail.com with ESMTPSA id l7-20020a170903120700b001766a3b2a26sm943369plh.105.2022.09.20.02.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 02:27:43 -0700 (PDT) Date: Tue, 20 Sep 2022 18:27:37 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Sebastian Andrzej Siewior Cc: Maurizio Lombardi , vbabka@suse.cz, linux-mm@kvack.org, rientjes@google.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V3] mm: slub: fix flush_cpu_slab()/__free_slab() invocations in task context. Message-ID: References: <20220919163929.351068-1-mlombard@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HK_RANDOM_ENVFROM, HK_RANDOM_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 20, 2022 at 09:56:59AM +0200, Sebastian Andrzej Siewior wrote: > On 2022-09-20 16:46:41 [+0900], Hyeonggon Yoo wrote: > > > @@ -2730,7 +2735,7 @@ static void flush_all_cpus_locked(struct kmem_cache *s) > > > INIT_WORK(&sfw->work, flush_cpu_slab); > > > sfw->skip = false; > > > sfw->s = s; > > > - schedule_work_on(cpu, &sfw->work); > > > + queue_work_on(cpu, flushwq, &sfw->work); > > > > Hi. what happens here if flushwq failed? > > > > I think avoiding BUG_ON() makes sense, > > but shouldn't we have fallback method? > > You get an output to act on and fix. The point is that it shouldn't have > happen in the first place. With the bug_on() that early, chances are > that you never see anything but a blank screen. So with the warn_on you > get probably to see the warn_on before you get here. > > Sebastian Thank you for kind explanation. Makes sense! -- Thanks, Hyeonggon