Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp151501iog; Fri, 17 Jun 2022 00:26:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ttqz2OplLNCnvNfoYADtai82KtoLTJ6oY7LRimfoBIT+Xb64oPVXFHkfWNo0ry6oObv9eP X-Received: by 2002:a17:90b:a53:b0:1ea:750e:93db with SMTP id gw19-20020a17090b0a5300b001ea750e93dbmr20349462pjb.66.1655450806787; Fri, 17 Jun 2022 00:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655450806; cv=none; d=google.com; s=arc-20160816; b=w4R3XBnHd3b+8qiG3fm6M8HiXDNbR4HVttKGHbuksXX/XZv9etUj32wsaJqsbFv0dd VyulYufKLjZn8K6i7ybJtKlrxKUK+Z6bSC4O2s41kOwGVwDD6Rh4MmqEYflDsvZz1Da3 WXrw9G9RPqDbBMcqxfnn4JyoGtsgxH9pQhEzyzWZhIKiq6TeVH2d5cgkW8M2C0PKrFwB eNyg7SpIysiuaOFuxPPGJzbbrXhggeA3ZJPgXAOyrV2P5K/RpnHH8Z8FEkbxfV61u6t+ FZaPoO1eXUTrRcA9jrQ5+lyriwskjh7eQ3+zZBXarRRKD63oPbFelAcCq9IbpEgNc9Xi rz0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :in-reply-to:from:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature:dkim-filter; bh=een82VKDnqFNGMLU70JcfFDIvtHY5EZzNOJCeSzNxBA=; b=fZxg/ikZdn9k6Qi8Lac1XFFevSfwNDXBUS1uE3nQHw9zfesWvDyUv2xOrjPKEOooiD TMC3heeEqRSwp65jEp1U9DJRT8OuWvK1QPrwO68EvxhTzA/XlsyO1jiTN2868lnKoo9h 4y2Htnv4Sht004O2qpIZac5X2dcL8SF1xTh/Vy0bV0q1Jj9akKEJ326xJTKMQJOet4K/ +eXTCKAXLP6FKIvGR5MP2f1w08MNZV99K9JhUlIomrdb8tXgSNsC87UNj/FCYoY9ylF2 uRV+dYvEnMF7bL2lMrFwjWeCMm020Aj3t1rQvtRyERWB8t/ny0KD9ErPRbLFfjTt1uMM +PwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=iAAlqGJO; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a634642000000b00408c3d94e4csi4756908pgk.691.2022.06.17.00.26.07; Fri, 17 Jun 2022 00:26:46 -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=@samsung.com header.s=mail20170921 header.b=iAAlqGJO; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380354AbiFQGrT (ORCPT + 99 others); Fri, 17 Jun 2022 02:47:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380358AbiFQGrQ (ORCPT ); Fri, 17 Jun 2022 02:47:16 -0400 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 354C65C871 for ; Thu, 16 Jun 2022 23:47:12 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20220617064710euoutp024c8bd9b0e9292b075efcc6e199752f30~5VZOVALtk0704707047euoutp02f for ; Fri, 17 Jun 2022 06:47:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20220617064710euoutp024c8bd9b0e9292b075efcc6e199752f30~5VZOVALtk0704707047euoutp02f DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1655448430; bh=een82VKDnqFNGMLU70JcfFDIvtHY5EZzNOJCeSzNxBA=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=iAAlqGJOjAiF217auWutyHwZEC065ssRQNgzDS7AvuVLB4zp+jge0b3p25DWmzazz 2aWW7fpzjQYaRt/zrzzxHQ16XVbyxVkc1g4bOWbZXpmpFEU8IQaMsx03+OhUco91TU HjMtl8qCsZ88jYBCydKvabdsaxD4aj+hSQOQOn/I= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20220617064710eucas1p2e62f26bcd719fd07c121d000f13253a0~5VZOFw40e2116021160eucas1p2q; Fri, 17 Jun 2022 06:47:10 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 48.AD.10067.E632CA26; Fri, 17 Jun 2022 07:47:10 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20220617064709eucas1p10e6e72f0655c42d00ae4c2275297bffb~5VZNoDYOu2048020480eucas1p1U; Fri, 17 Jun 2022 06:47:09 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20220617064709eusmtrp26bc55ed0228cf66805137e12c33a80f3~5VZNmrEgW1689716897eusmtrp2F; Fri, 17 Jun 2022 06:47:09 +0000 (GMT) X-AuditID: cbfec7f4-dd7ff70000002753-1c-62ac236ede72 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 8D.3D.09038.D632CA26; Fri, 17 Jun 2022 07:47:09 +0100 (BST) Received: from [106.210.134.192] (unknown [106.210.134.192]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20220617064709eusmtip1d15f57ce6b2b2b0b469d129719b52fb8~5VZNC_KxB0652206522eusmtip1X; Fri, 17 Jun 2022 06:47:08 +0000 (GMT) Message-ID: <09fb9691-828e-1f53-6eaa-27ed9a113872@samsung.com> Date: Fri, 17 Jun 2022 08:47:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 7/7] mm/page_alloc: Replace local_lock with normal spinlock Content-Language: en-US To: Andrew Morton , Yu Zhao Cc: Mel Gorman , Nicolas Saenz Julienne , Marcelo Tosatti , Vlastimil Babka , Michal Hocko , Hugh Dickins , LKML , Linux-MM From: Marek Szyprowski In-Reply-To: <20220615160446.be1f75fd256d67e57b27a9fc@linux-foundation.org> Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOKsWRmVeSWpSXmKPExsWy7djP87p5ymuSDP79Y7aYs34Nm8XTT30s Fpd3zWGzuLfmP6vFjqX7mCxef1vGbLGxZxKrxeSXKxgtZjf2MVq8m/CF1YHLY8GmUo9NqzrZ PDZ9msTucWLGbxaP9/uusnmcWXCE3WPrLzuPz5vkAjiiuGxSUnMyy1KL9O0SuDJmrN/GVHCY u+Lb11WMDYz/OLoYOTkkBEwk5l54ztLFyMUhJLCCUWJD+29GCOcLo0TP1C9Qmc+MErMmvGCH aZl4o4kJIrGcUeLJh5nsEM5HRoktjRPZuhg5OHgF7CROfXIEaWARUJVY/uk8WDOvgKDEyZlP WEBsUYEkifnbWllBbGGBQImW98fY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+Lb11WMDYz/OLoYOTkkBEwk Jt5oYgKxhQSWMkq8PhkFEZeRODmtgRXCFpb4c62LrYuRC6jmPaPE3f9fWLoYOTh4BewkTn1y BKlhEVCVWP7pPDuIzSsgKHFy5hMWEFtUIEli3t7VjCC2sECgRMv7Y2wgNrOAuMStJ/PB9ooI eElsfHuHFSK+iUli9e8KiF0HmSSu3G4Aa2YTMJToegtyBAcHp4C3xLPzwhD1ZhJdW7sYIWx5 ie1v5zBPYBSaheSMWUjWzULSMgtJywJGllWMIqmlxbnpucVGesWJucWleel6yfm5mxiBkbrt 2M8tOxhXvvqod4iRiYPxEKMEB7OSCK9Z8MokId6UxMqq1KL8+KLSnNTiQ4ymwLCYyCwlmpwP TBV5JfGGZgamhiZmlgamlmbGSuK8ngUdiUIC6YklqdmpqQWpRTB9TBycUg1Mbv6rvv/1OBfD MYur/w7H9K3W8Y+39RpUh61Ik/i77tuL9o8pFx469qwMiYjoKPdfkL51RiCbRc5iSRn99wJu zI5bO08vVTQoat724f4rDcnt7X0GF99KL3lUf3TCzK+R3LtY5txdPTfDgkVg0kqZt04nolWU XYrW7ozau9FkpaW7+IXWlz1sJ/cff+z6ZNfXs6rXvq0L+mpToF94SbdHQOiviuH3/ZphXDwy bU91E4u/Gf7RW5byuamXS/CZgt62+DXd93/KM+e+d/jj+7MglmV7v+I5syOcLnfqovxeTn+e +4Xv3fMbC45/jKlr2XRR4Lp4bvwEXf3Qb8Kn3sz1Mr9mG8dfuWDPLIPOvezGSizFGYmGWsxF xYkAh6zTJV0DAAA= X-CMS-MailID: 20220617064709eucas1p10e6e72f0655c42d00ae4c2275297bffb X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20220615224855eucas1p1ea6d90c23ec9423dfe04b267f6dddd2a X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20220615224855eucas1p1ea6d90c23ec9423dfe04b267f6dddd2a References: <20220613125622.18628-1-mgorman@techsingularity.net> <20220613125622.18628-8-mgorman@techsingularity.net> <20220615160446.be1f75fd256d67e57b27a9fc@linux-foundation.org> X-Spam-Status: No, score=-10.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Andrew, On 16.06.2022 01:04, Andrew Morton wrote: > On Thu, 16 Jun 2022 00:48:55 +0200 Marek Szyprowski wrote: > >> In the logs I see lots of errors like: >> >> BUG: sleeping function called from invalid context at >> ./include/linux/sched/mm.h:274 >> >> BUG: scheduling while atomic: systemd-udevd/288/0x00000002 >> >> BUG: sleeping function called from invalid context at mm/filemap.c:2647 >> >> however there are also a fatal ones like: >> >> Unable to handle kernel paging request at virtual address 00000000017a87b4 >> >> >> The issues seems to be a bit random. Looks like memory trashing. >> Reverting $subject on top of current linux-next fixes all those issues. >> >> > This? > > --- a/mm/page_alloc.c~mm-page_alloc-replace-local_lock-with-normal-spinlock-fix > +++ a/mm/page_alloc.c > @@ -183,8 +183,10 @@ static DEFINE_MUTEX(pcp_batch_high_lock) > type *_ret; \ > pcpu_task_pin(); \ > _ret = this_cpu_ptr(ptr); \ > - if (!spin_trylock_irqsave(&_ret->member, flags)) \ > + if (!spin_trylock_irqsave(&_ret->member, flags)) { \ > + pcpu_task_unpin(); \ > _ret = NULL; \ > + } \ > _ret; \ > }) > > > I'll drop Mel's patch for next -next. Yes, this fixes the issues I've observed. Feel free to add: Tested-by: Marek Szyprowski Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland